start | find | index | login or register | edit
Sonntag, 12. April 2009 link

auto gen = [](int x) {return [&x](int y) {return x += y;};};

earl 4245 days ago:
Paul Graham's "accumulator generator" example (restricted to integers) using C++0x's type inference and lambda expressions, in case anyone wondered.

Please log in (you may want to register first) to post comments!

powered by vanilla
echo earlZstrainYat|tr ZY @. • esa3 • online for 7208 days • c'est un vanilla site