虽然C++11出来很长时间了,我才开始学习。花了半天时间看完了wikipedia,总结如下。
- Rvalue references and move constructors
- constexpr
- trivial POD
- std::initializer_list
- auto
- range-based for
- lambda
- trailing-return-type
- construction improvement
- override, final
- nullptr
- enum class
- Template aliases
- raw string literal
- User-defined literals
- thread_local
- default constructor
- static_assert
- alignof and alignas.
- Threading facilities
- Hash tables
- Regular expressions
- General-purpose smart pointers
- Extensible random number facility
- Wrapper reference
- Polymorphic wrappers for function objects
- Uniform method for computing the return type of function objects
完整的见这里: https://en.wikipedia.org/wiki/C%2B%2B11#Rvalue_references_and_move_constructors
其中比较有用的且能马上上手的是auto,range-for,override,nullptr,lambda,enum class,move constructors; hashmap和智能指针其实我在tr1中已经用了。跨平台的线程库也是很好的。