Boost logo

Boost :

Subject: Re: [boost] [variant] Please vote for behavior
From: Joel de Guzman (djowel_at_[hidden])
Date: 2013-01-28 17:12:14


On 1/29/13 5:58 AM, Gottlob Frege wrote:
>>> How do I know if is it singular valued?
>>> >>
>> >
>> >How do you know if an iterator is singular valued? You can't. Same here.
>> >
>> >
> it == container.end()?
>
> Or am I confused?

Nope. A singular valued iterator may not be compared. A singular
valued iterator is not associated with any sequence. E.g default
constructed iterator pointing to nowhere.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

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