我需要标记 (' ','\n','\t' 作为分隔符) 与 somethink like
std::string text = "foo bar";
boost::iterator_range<std::string::iterator> r = some_func_i_dont_know(text);
后来我想得到输出:
for (auto i: result)
std::cout << "distance: " << std::distance(text.begin(), i.begin())
<< "\nvalue: " << i << '\n';
上面的例子产生了什么:
distance: 0
value: foo
distance: 6
value: bar
谢谢你的帮助。