cpp17#本次会议确定的 C++ 17 特性:
Core Lang:
[[fallthrough]]
[[nodiscard]]
[[maybe_unused]]
P0068R0constexpr
Lambdas(允许一个closure type
作为literal type
,对lambda
的调用可以一个constant expression
(closure type 的operator()
是否是constexpr
可推导)N4487Unary Folds and Empty Parameter Packs P0036R0
Generalizing range-based for loops 允许
range-based for loop
里面的begin()
和end()
返回两个不同的类型