英文 | 中文 | 简短的解释 |
---|---|---|
c99 preprocessor | c99预处理器 | |
static_assert |
编译器的断言检测,还可以选择输出消息 | |
Right angle brackets | 右角括号 | |
Extended friend declearations |
扩展的friend 声明 |
由friend class X; 变为 friend X;
|
long long |
为了更兼容c99,目标类型至少64位 | |
Compiler support for type traits | 类型特征的编译器支持 | |
auto |
https://www.jianshu.com/p/dd464bfcf840 | |
Delegating constructors | 委托构造函数 | 减少构造函数的代码,可以在一个构造函数中使用另一个构造函数 |
extern template | ||
constexpr | 对于变量,它声明该变量必须在编译时求值。对于函数,编译时求值是可能的。 | |
Template alias | 模板别名 | |
char16_t and char32_t
|
为了处理unicode新增加的两种字符类型 | |
alignas |
指定对象或类型的对齐要。struct alignas (8) S {};
|
|
alignof |
查询类型的对其要求 | |
Defaulted and deleted functions | 默认的和删除的函数 | 增加了default 和delete 两个关键字,default 用于说明使用编译器提供的默认的函数,delete 用于使默认的函数无效 |
strongly-typed enum
|
强类型enum
|
给enum 加了类型和作用域。enum class E : unsigned long { E1 = 1, E2 = 2, Ebig = 0xFFFFFFF0U };
|
Atomic operations | 原子操作 | |
nullptr |
给null pointer起了个名字,与0 区别开来 |
|
Explicit conversion operators | 显示转换运算符 | |
ref-qualifiers | 引用限定符 | |
Unicode string literals | Unicode 字符串常量 | |
Raw string literals | 未处理的字符串常量 | |
inline namespace | 内联命名空间 | |
Inherting constructors | 继承构造函数 | |
Trailing function return types | 尾随的函数返回类型 | |
Unrestricted unions | 无限制的联合体 | |
Variadic templates | 变参数模板 | |
Expression SFINAE | 表达式SFINAE | |
Local and unnamed types as template parameters | 局部uo无名类型作为模板形参 | |
Thread-local storage | 线程局部存储 | |
Dynamic initialization and destruction with concurrency(magic statics) | 带并发的动态初始化与析构(魔法静态变量) | |
Garbage Collection and Reachability-Based Leak Detechtion | 这个没有任何一个编译器实现,不知道意义何在 | |
Initializer lists | 初始化列表 | |
Non-static data memeber initializers | 非静态数据成员初始化器 | |
Attributes | 属性 | |
Forward enum declarations |
前置enum 声明 |
|
User-defined literals | 用户定义的常量 | |
Rvalue references | 右值引用 | |
Lambda expressions | lambda表达式 | https://www.jianshu.com/p/a155d79beca0 |
Range-for loop | 范围for 循环 |
|
noexcept |
||
Defaulted move special member functions | 默认的移动特殊成员函数 | |
override and final
|
||
decltype |
网友评论