class ObjectA{ ...}typedef std:vector<ObjectA*> ObjectAVector;class ObjectB{ void Apply(Object& A) { ... } void Apply(ObjectAVector& av) { for(ObjectAVector::iterator it = av.begin(); it != av.end(); ++it) { Apply(**it); } }}
I am wondering, is there a way to convert that iterator loop with a std::for_each algorithm. Using boost is possible as well as anything available within the C++ standard in VS2008.