C++11

作者: fck_13 | 来源:发表于2020-05-08 08:16 被阅读0次
英文 中文 简短的解释
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 默认的和删除的函数 增加了defaultdelete两个关键字,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

相关文章

网友评论

      本文标题:C++11

      本文链接:https://www.haomeiwen.com/subject/ykfgghtx.html