The following code is a simple example of how to use the new features in C++11.
Discription

It takes advantage of lambda functions, auto and decltype .

#include #include #include int main() { std::vector vec = { 1, 2, 3 }; // Prints: [1, 2] std::cout <first; // Prints: [2] std::cout <second; // Prints: 3 for(auto itr = vec.begin(); itr != vec
https://t.co/xzlKFLysFE

Back to Main