From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-29 13:40:32


AMDG

frederic.bron_at_[hidden] 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