由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - c++20设计方案确定
相关主题
问一个C++ set和unordered_set iterator的问题C++一个string的小问题
effective C++里的memory pool 一问:C++ Interview Question
array allocation in c内存分配问题
why do we still use dynamic allocation?a small question about c++ memory allocation
请教一个C++问题请教关于allocator member function 的问题
这段C++代码有啥问题在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
问两个C++语法问题关于C/C++里的Static variable的memory allocation/initializa
关于内存泄漏什么是OS Memory management and heap structure?
相关话题的讨论汇总
话题: std话题: constexpr话题: c++话题: features话题: 20
进入Programming版参与讨论
1 (共1页)
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
2
这么多功能特性啊
r*****z
发帖数: 906
3
赞美!不少有意思的东东。
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.

1 (共1页)
进入Programming版参与讨论
相关主题
C++ pointer to function is buggy请教一个C++问题
a string define question (c++)这段C++代码有啥问题
a c++ question.问两个C++语法问题
STL/vector引用成员变量。关于内存泄漏
问一个C++ set和unordered_set iterator的问题C++一个string的小问题
effective C++里的memory pool 一问:C++ Interview Question
array allocation in c内存分配问题
why do we still use dynamic allocation?a small question about c++ memory allocation
相关话题的讨论汇总
话题: std话题: constexpr话题: c++话题: features话题: 20