c++ 14
4大赋值函数 =default,
noexpt,override,final等关键字来为编译器增加严谨性
支持函数返回为auto,lambda参数为auto,变量模板
[[deprecated]] 被丢弃的符号,会被禁用掉
std::make_unique 正式支持
c++ 17
switch加入逻辑继续往下走[fallthrough]
using 继承构造函数
template auto, 返回类型是auto
inline variable,对应之前的extern,防止多次重复包含
std::variable,visite访问 string_view模型
结构化绑定,
has_include
maybe_unused,nodiscard 没有被接受
聚合初始化 {{},{3,4},{1,2}}
嵌套命名空间 A::B::C这种
条件分支语句初始化
c++ 11:
初始化列表,
新容器 array,tupple,map,unorder_map,set,bitset
新指针,抛弃auto_ptr,使用unique_ptr使用nullptr,新增SharedPtr,
加入线程支持,条件和锁
加入移动语义,右值引用,
string的多种支持,转义字符,raw string,utf8string
同步和异步 package_task, std::async,std::sync, 承诺和未来类型 std::promise,std::future
基于模板的条件类型
Lambda,支持闭包,支持函数对象,以及bind
自动类型推导auto decltype,常量符号constexp
新增API Chrono,numeric,类型转换
类型判断 std::decay std::is_same