|
Boost Users : |
From: yinglcs2_at_[hidden]
Date: 2006-02-27 17:15:37
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
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