cpp/11

C++11 is the second major version of C++ and the most important update since C++98. A large number of changes were introduced to both standardize existing practices and improve the abstractions available to the C++ programmers.

Before it was finally approved by ISO on 12 August 2011, the name 'C++0x' was used because it was expected to be published before 2010. It took 8 years between C++03 and C++11, so it has become the longest interval between versions so far. Since then, currently, C++ updates every 3 years regularly.

Following features were merged into C++11:
 * From TR1: all of TR1 except Special Functions.
 * From Boost: The thread library,, and , iterator improvements
 * From C: C-style Unicode conversion functions

Core language features

 * and
 * defaulted and deleted functions
 * and
 * trailing return type
 * rvalue references
 * move constructors and move assignment operators
 * scoped enums
 * and literal types
 * list initialization
 * delegating and inherited constructors
 * brace-or-equal initializers
 * and
 * type aliases
 * variadic templates
 * generalized (non-trivial) unions
 * generalized PODs (trivial types and standard-layout types)
 * Unicode string literals
 * user-defined literals
 * attributes
 * lambda expressions
 * specifier and operator
 * and
 * multithreaded memory model
 * thread-local storage
 * GC interface
 * range- (based on a Boost library)
 * (based on a Boost library)
 * range- (based on a Boost library)
 * (based on a Boost library)

Library features

 * concurrency support library
 * and other use of rvalue references throughout all parts of the existing library
 * std
 * std
 * std
 * stateful and scoped allocators
 * std
 * chrono library
 * ratio library
 * new algorithms:
 * std, std, std,
 * std,
 * std, std,
 * , std,
 * std, std,
 * std, std, std,
 * std, std,
 * std, std,
 * std, std,
 * std,
 * std,
 * std


 * Unicode conversion facets
 * std
 * std
 * std and std
 * iterator improvements:
 * std
 * std
 * std
 * std


 * Unicode conversion functions

Compiler support
Main Article: C++11 compiler support