C 17
的新功能在C 17的功能开发之后,已经引入了几个新的语言功能和库添加: [2 class templatesRepresentation of values of any type with template
Lambda Enhancements:
简介Constexpr lambdas 的介绍可以在lambdas 引入新属性,例如[[fallthrough]],[[nodiscard]]和[[and_unused]] [2 ]
其他值得注意的功能: hexadecimal float point literals
[库添加:数据类型:
Introduction of is_invocable and related traits
hendering Enhermements:
Splicing for maps, sets, and unordered containersNon-const data() access for strings
用于标准库保留std [0-9]未来标准库的名称空间 std :: clamp,std :: gcd和std :: lcm
的异常处理改进,包括std :: undught_exceptionsstd :: as_const,std :: bool_constant,以及各种模板实用程序改进的std :: chrono library 在std
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3