From: Richard Peters (R.A.Peters_at_[hidden])
Date: 2002-02-06 10:47:26
I've uploaded a few files that could make working with ranges instead of
pairs of iterators easier.
Class range_t is the main class, it contains a pair of iterators and some
functions on it. range.hpp contains this class, along with convenience
function range(container&), range(const iterator&, const iterator&),
crange(const container&). The file RangeTest.cpp demonstrates its use.
An extension of range_t could be reversible_range_t, this one has one
additional type, reverse_iterator, and some convenience functions, like
rrange(container&), that does the same thing as range() but returns a
reversible_range_t, and reverse_range(container&), that takes the container
and reverses the range.
I saw quite some emails about range classes, mainly in august 2001, is there
still interest in these classes?
I took the liberty of uploading them already because of the interest in the
past, so you can view them right away.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk