o**n 发帖数: 2130 | 1 This week, we added the following features to the C++20 draft:
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.
The following features have been approved for C++20, either at this meeting
or a prior meeting, but have not been added to C++20 yet because we're still
completing the specification. Hopefully they'll be added at the July 2019
Cologne 🇩🇪 meeting, but we may not get to everything due to
time constraints.
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.
The following notable features have been approved for C++20 at prior
meetings:
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. | l*********s 发帖数: 5409 | | r*****z 发帖数: 906 | | e****r 发帖数: 1 | 4 我还以为这里能有个 C++ 专版,原来隐匿在此地。
【在 o**n 的大作中提到】 : This week, we added the following features to the C++20 draft: : 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.
|
|