📄 set3.hh
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -