29 Jul
2008
29 Jul
'08
5:40 p.m.
AMDG frederic.bron@alcan.com wrote:
1.) the object "tokens" created in function wbegin(...) is deleted when the function exists; is it an issue when iterating over the elements?
It will actually work, however, it's probably better to use token_iterator directly. http://www.boost.org/doc/libs/1_35_0/libs/tokenizer/token_iterator.htm
2.) I use default constructor of the iterator as end iterator; is it legal? This allows me not to provide 2 times the string and the list of separators.
The documentation is unclear. However, the implementation makes all undeferenceable iterators equal. In Christ, Steven Watanabe