Common Keywords in C++11

Common Keywords in C++11

Type Inference Related auto: Automatic type inference, used to simplify the specification of types; especially useful when type strings are long, simplifying the writing. { // Simplified iterator std::list<int> tAuto = { 1,2,3,4 }; for (auto it = tAuto.begin(); it != tAuto.end(); it++) { } std::function<void(int)> funPtr = nullptr; // Simplified long type writing. Automatic … Read more