C++20新特性
C++20新特性
语言特性
- 协程
- concept概念
- 指定初始化器
- lambda表达式模板语义
- 范围for循环增加初始化器
- [[likely]] [unlikely]属性
- 废弃隐式捕获this
- 非类型模板参数的类类型
- constexpr虚函数
- explict(bool)
- 立即函数
- using enums,能直接进行using了
- lambda捕获参数包
- char8_t类型
- constinit
库特性
- concept库
- 同步缓冲输出流
- std::span
<bit>操作- 数学常量
<numbers> - std::is_constant_evaluated
- starts_with and ends_with on strings
- Check if associative container has element
- std::bit_cast
- std::midpoint
- std::to_array

浙公网安备 33010602011771号