
6 Dec
2006
6 Dec
'06
5:02 p.m.
Nemanja Trifunovic <nemanja_trifunovic@yahoo.com> writes:
2) Bidirectional iterator. Actually, random iterators are required, which I think makes sense for string containers as I explained to Hervé
I hadn't noticed the uage of "end - it". In any case, that can be replaced with std::distance(it,end) to work with forward iterators. Just because the vast majority of sequences will be random access doesn't mean we should limit ourselves to that, when it is so easy to allow the use of Forward Iterators. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk