C++ 委员会于上周在夏威夷科纳举行了一场官方 ISO 集会会议,以确定下一个国际尺度 C++20 的成果集。按照集会会议陈诉,C++20 的成果计划现已完成。打算于 2019 年 7 月在科隆进行的集会会议上,完成 C++20 的类型并发送一份委员会草案以供检察。
上周集会会议确定添加至 C++20 草案的新特征:
-
Modules!
-
Coroutines!
-
static , thread_local , and lambda capture for structured bindings.
-
std::polymorphic_allocator<> .
-
std::midpoint and std::lerp .
-
std::execution::unseq execution policy.
-
std::ssize () free function that returns a sized size.
-
std::span usability enhancements.
-
Precalculated hash values in lookup.
而以下的特征已在本次集会会议或之前的集会会议上得到了 C++20 核准,但尚未添加到 C++20 中,由于今朝仍在完陈类型。它们有望在 2019 年 7 月的科隆集会会议上被插手,不外因为时刻限定,也许无法完成全部事变。
-
Expansion statements.
-
The C++20 synchronization library.
-
std::format .
-
constexpr std::vector .
-
Allow constexpr allocation, but disallow allocations that are not deleted at compile time.
-
constexpr std::type_info::operator== .
-
New conceptification of iterators.
-
Monadic operations for std::optional .
-
std::source_location .
-
std::flatmap .
-
std::flatset .
-
std::ostream_joiner .
-
Stack trace library.
-
std::byteswap .
-
constinit .
-
Deprecating some uses of volatile .
-
Implicit creation of objects for low-level object manipulation.
-
using enum .
而下面的这些特征,早已在之前的集会会议上得到了 C++ 20 核准。
-
Concepts.
-
Contracts.
-
Ranges.
-
operator<=> .
-
A lot more constexpr features: consteval functions, std::is_constant_evaluated , constexpr union , constexpr try and catch , constexpr dynamic_cast and typeid .
-
Feature test macros.
-
std::span .
-
Synchronized output.
-
std::atomic_ref .
总之,C++20 应该会是一个像 C++11 那样的大版本。
据透露,器材研究小组 SG15 抉择建设一个 C++ 生态体系技能陈诉,该陈诉将描写新模块化 C++ 天下中器材(构建体系等)的最佳实践和最新技能。 【编辑保举】 - 10个Java开拓职员的顶级测试器材、库和框架先容
- 微软中国 CTO:请把 AI 拉下神坛
- 被误解的中国通讯业,你是个中一分子吗
- 互联网严冬来姑且的三件事:找路、找钱、找春天
- 特朗普发推体现对华为让步!美国但愿通过竞争而不是封杀赢告捷利
【责任编辑:张燕妮 TEL:(010)68476606】
点赞 0 (编辑:河北网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|