Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-11-15 15:01:14


John Torjo <john.lists_at_[hidden]> writes:

>>>
>>>It maps ok with bidirectional/random access. If an iterator has a
>>>given iterator category, the range will preserve it. I have used it in
>>>code, and it's quite powerful.
>> Don't you need a current position, start and an end for
>> bidirectional
>> iteration? Forward "ranges" just get a current position and an end.
>>
>
> In my view, bidirectional means that the begin() iterator from the
> range can move both ways, and that it still has an end() of the range.

Why is it important to have an end but not to have a beginning?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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