Monthly Archives: April 2017

Syntax [crayon-5d0b4064826cf817561407/]   [crayon-5d0b4064826d8170533525/] 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

Syntax [crayon-5d0b406482bd2946793730/] Usage / Usability Type deduction happens at compile time Auto ignores references and const/volatile Hard to write [crayon-5d0b406482bdb407480578/]   Hard to know [crayon-5d0b406482bdf512398847/] PROS No more uninitialized variables, no more hidden bugs [crayon-5d0b406482be3836571048/] avoid problems related to “type shortcuts” [crayon-5d0b406482be7053615514/] std::vector<int>::size_type is specified to be an unsigned integral […]

General features: Auto specifier