Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-02 19:23:53


----- Original Message -----
From: "Kevin S. Van Horn" <kevin.vanhorn_at_[hidden]>

> On Fri, 2 Nov 2001, David Abrahams wrote:
>
> > In that spirit, I think talking about iterator ranges misses a
significant
> > opportunity for generalization. My half_open_range works with integer
types
> > as well as iterators. I'm not sure there's anything special about
iterator
> > ranges as opposed to ranges of other things.
>
> Is half_open_range documented somewhere, or is it not officially released?

The latter.

> I see it in the sources, but I couldn't find a description of it.

Right. I came up against the issue of whether begin() should return a
counting_iterator to the start of the range or simply the start of the range
itself, and stopped because I didn't know how to decide. I now think the
counting_iterator was a mistake. It's easy enough to write

    make_counting_iterator(r.begin())

===================================================
  David Abrahams, C++ library designer for hire
 resume: http://users.rcn.com/abrahams/resume.html

        C++ Booster (http://www.boost.org)
          email: david.abrahams_at_[hidden]
===================================================


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