C++ 11
C++ 11
auto
auto a; // wrong
auto i = 1;
auto d = 1.0;
auto str = "Hello World";
auto ch = 'A';
auto func = less<int>();
vector<int> iv;
auto ite = iv.begin();
auto p = new foo() // customized typeinitialization
int arr[3]{1, 2, 3};
vector<int> v{1, 2, 3};
map<int, string> m{{1, "a"}, {2, "b"}};
string str{"Hello World"};for loop
tuple (variable-length template)
lambda expression
decltype
nullptr
rvalue reference; move semantics; perfect forwarding
Last updated
Was this helpful?