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

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


earl 5699 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 @.
earl.strain.at • esa3 • online for 8662 days • c'est un vanilla site