- static_assert
- noexcept
- 强类型枚举 enum class
enum class myEnum {None, One , All};
- final / override
- 继承构造函数
使用using A::A
- 委派构造函数
不能既是目标构造函数,又是委派构造函数
- 显式转换操作符explicit
- 类型推导 auto 、decltype
- 迭代,for (auto i : arr)
- 智能指针 unique_ptr / share_ptr / weak_ptr
std::unique_ptr<YourObject> obj(new YourObject());
- 常量表达式函数 constexpr
- nullptr
参考 http://www.cnblogs.com/porter/p/3611718.html
- =default / =deleted
- quick_exit / at_quick_exit
- 语言级线程支持 Atomic and Thread support
参考 http://www.cplusplus.com/reference/multithreading/
- lambda
[capture] (parameters) mutable –> return-type {statement}
- 字节对齐
操作符 alignof
对齐描述符 alignas
- std::function / std::bind 函数
参考 https://blog.csdn.net/fjzpdkf/article/details/50249265
以下是关于C++11的英文版本和中文版本维基百科的链接:
http://en.wikipedia.org/wiki/C++11
http://zh.wikipedia.org/wiki/C++0x
参考链接:https://coolshell.cn/articles/5265.html
参考书籍:《深入理解C++11:C++11新特性解析与应用》