Boost logo

Boost :

Subject: Re: [boost] AlRangeExandrescu?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-07-25 17:51:38


Steven Watanabe wrote:

>> Can't you handle that by storing a range that always contains only one
>> element: [iterator,iterator+1)?
>>
>
> How would you implement popFront() without storing
> two iterators, an iterator and a bool, or something?

I guess an iterator you can set to some special value might do the trick.
For example, that special value may be an iterator to a static instance
of a dummy element, or in the case of pointers 0.


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