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
> > opportunity for generalization. My half_open_range works with integer
> > as well as iterators. I'm not sure there's anything special about
> > 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


  David Abrahams, C++ library designer for hire

        C++ Booster (
          email: david.abrahams_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at