Learning boost 3 -- string algorithm 1[30]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 heroboy2000 的 blog

result_iterator_of<collection1t>::typecollection1t::iterator

begin(input)input.begin()

end(input)input.end()

first_finder(search)返回一个first_finder对象,然后调用这个finder.operator()(beg,end),并且以iterator_range作为查找结果返回。其实对于每一个finder都重载了operator()函数,使用这个函数就可以对字符串直接查找。

 

find iterator 查找迭代器

find算法只能查找到一个结果,而通过find_iterator可以查找所有的结果。

template<typename iterator> class find_iterator;

find_iterator make_find_iterator(input, finder);

本文关键:Learning boost 3 -- string algorithm 1
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top