Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-12-20 04:21:23


"Eric Niebler" <eric_at_[hidden]> wrote in message
news:41C50C14.3040408_at_boost-consulting.com...
|
| BOOST_FOREACH is a macro which makes it simple to iterate over a
| sequence. It is concise, and clearly expresses the programmer's
| intentions. For example:
|
| short array_short[] = {1,2,3};
| BOOST_FOREACH( short & i, array_short )
| {
| ++i;
| }
| // array_short contains {2,3,4} here

looks great Eric.

what about a BOOST_REVERSE_FOREACH ?

br

Thorsten


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