27 Feb
2006
27 Feb
'06
10:15 p.m.
Hi I have a Boost lambda question, I appreciate is someone can help me out: I have a class A: class A{ private: B& getB() {return _b;} B& _b; }; vector<A> aList; void aFunction (A& a, B& b); how can I write a loop to walk thru a list of A and call aFunction. for (vector<A>::iterator itr = aList.begin; itr != end; itr++) { A a = (*itr); aFunction (a, a->getB()); } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com