C++11 is the official name of the C++ standard accepted in 2011. Before, this standard was called 'C++0x'.
C++11 new features
- data types:
- char16_t: a new 16-bit character data type
- char32_t: a new 32-bit character data type
- enum class: a new conversion-safe enumeration
- extern template: forward declare template functions
- long long int: guaranteed to be 64-bit
- keywords:
- auto: let the compiler infer the data type
- constexpr: mark a generalized constant expressions
- final: to indicate that a virtual member function cannot be overriden
- for: support of a range-based for loop
- nullptr: set a pointer to uninitialized
- static_assert: same function as BOOST_STATIC_ASSERT
- classes:
- algorithms:
- '>>' can be used as a nested template closer
- delegation: let constructors call each other
- enum class forward declarations
- initializer lists
- lambda expressions
- std::move
- much more
- Write in ISO Standard C++ [1]