
13 Dec
2008
13 Dec
'08
12:25 p.m.
----- Original Message -----
From: "QPlace"
Cannot figure out how to properly use lambda library in following situation (pseudo-code below):
class Unit { };
class Test { public: void dosmth(Unit* unit) {} };
int main() { vector
lst; Test t; for_each (lst.begin(), lst.end(), ?// I want to call t.dosmth with each Unit* in list } Any help will be greatly appreciated.
Hi, you can take a look at the documentation Lambda expressions in details > Member functions as targets Best, Vicente