
18 Jul
2006
18 Jul
'06
2:10 p.m.
Janek Kozicki wrote:
However tokenizer::iterator is not a typical container nor typical iterator. It is even unusual that it checks for the iterator's validity (because trying to access beyond the container causes assert(valid_) to fail ).
MS debug iterators check their constraints - in debug mode. assert() also only exists in debug mode.
The rationale from typical container iterators makes no sense when applied to tokenizer::iterator, because iterating over tokenizer items is not fast - it requires parsing of the content.
The stream iterators don't throw either. (The underlying stream might throw, though.) Sebastian Redl