From: Eric Niebler (eric_at_[hidden])
Date: 2004-12-20 11:26:18
Thorsten Ottosen wrote:
> what about a BOOST_REVERSE_FOREACH ?
Hey, the formal review hasn't started yet! :-) Actually, I don't think
BOOST_REVERSE_FOREACH is the right way to approach this. I'd rather see
this done with range adaptors:
BOOST_FOREACH( int i, adaptor::reverse(vect) )
... where adaptor::reverse() returns an iterator_range<> (from
Boost.Range) of reverse_iterator<> (from Boost.Iterator).
I'm working on a set of range adaptors, which I hope to add to
boost-sandbox after Christmas. This would be a separate library from
BOOST_FOREACH, but it would work well with it.
-- Eric Niebler Boost Consulting www.boost-consulting.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 12/17/2004
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk