Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2006-12-06 12:02:55


Nemanja Trifunovic <nemanja_trifunovic_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk