Boost logo

Boost Users :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-05-15 18:05:37


> Hi,
>
> I use boost library with for_each to loop thru my vector.
>
> for_each(myVector.begin(),myVector.end(), bind ( &MyClass::aFunc,
> this, _1) );
>
> Can you please tell me how can i loop thru the same list in reverse?

     for_each(myVector.rbegin(),myVector.rend(), bind ( &MyClass::aFunc,
this, _1) );


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net