Boost logo

Boost Users :

Subject: Re: [Boost-users] A forward iterator need not be default-constructible
From: Andrew Sutton (asutton.list_at_[hidden])
Date: 2011-09-30 12:29:52


>> 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.

Well, two anyways: == and !=. Given that the standard doesn't allow
those on singular-valued iterators, you're right. I think the standard
is a little too strict, here.


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