set3.hh
来自「MySql C++ library」· HH 代码 · 共 36 行
HH
36 行
#ifndef __set3_hh__
#define __set3_hh__
#include "set2.hh"
#include "coldata2.hh"
template <class Insert>
void set2container (const char *str, Insert insert) {
MutableColData s(false);
while (1) {
s = "";
while (*str != ',' && *str) {
s += *str;
str++;
}
insert(s);
if (!*str) break;
str++;
}
}
template <class Container>
ostream& Set<Container>::out_stream (ostream &s) const {
typename Container::const_iterator i = begin();
typename Container::const_iterator e = end();
while (true) {
s << *i;
i++;
if (i==e) break;
s << ",";
}
return s;
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?