lambda


code
Syntax [crayon-5d32ee461b5d7370766655/]   [crayon-5d32ee461b5e7193186636/] Note: the code from above is no longer necessary in C++14, the compiler will deduce the return type.   Usage / Usability Capture list [] take none of the variables from the enclosing scope [&] take all the variables from the enclosing scope by reference [=] […]

General features: lambda expressions