Boost logo

Boost Users :

From: Sean DeNigris (lotusone_at_[hidden])
Date: 2005-04-04 13:39:32


To anyone interested, I ended up writing for_each<cIterType&>(.) and the
algorithm passed the iterators by reference.

            - Sean

 

>typedef set<int>::const_iterator cIterType;

>cIterType bit = mySet.begin(); cIterType eit = >mySet.end();

>

>for_each(ref(bit), ref(eit),

> if_(bind(boost::next<cIterType>, boost::ref(bit)) != mySet.end())

> [...]



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