Boost logo

Boost Users :

Subject: Re: [Boost-users] A forward iterator need not be default-constructible
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-30 11:25:01


on Fri Sep 30 2011, Andrew Sutton <asutton.list-AT-gmail.com> wrote:

>> I doubt there may be a sequence of length 0 at NULL.  How would you allocate
>> such a sequence?
>
> Actually, every iterator (singular, initialized, pointing to viable
> memory or not) defines its own empty range.

No, I don't believe that's quite correct. There are lots of things one
can do with iterators in a range that one cannot do with a
minimally-singular iterator.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net