c 17中的新功能是什么? argument deduction for class templates
template
to represent values of any non-type template argument typeFixes to non-type template arguments
Support for template templatesExtended folding and ... expressions- auto x{8} as an integer
constexpr lambdas 在属性中使用以避免重复属性namespaces ,要求编译器忽略非标准属性,他们不识别
消除不抛出并用throw()和noexcept(true)和noexcept(true) misc:- 枚举的直接列表initialization
转发进度保证(fpgs)- Arrays of pointer conversion fixes
- Fixes to inherited constructors and aggregate initialization with inheritance
- Utility functions for std type punning
- Library添加:
- 数据类型:
- std::string_view as a reference to a character array or substring
- std::byte as neither an integer nor a character, but just data
- Invoke东西:
- 文件系统ts v1
:改进文件系统operations - 螺纹:
std ::共 machinery- Library Fundamentals TS v1:
Searching algorithms, polymorphic allocator (pmr), sampling
- Container Improvements:
try_emplace and insert_or_assign, splicing for maps and sets, non-const .data() for strings,非会员std ::大小,std ::空,std ::数据,最小的不完整类型的支持,在容器中,连续迭代器“概念”,constexpr迭代器,更新的emplace fromptions fromptions
Other std datatype improvements: Construction of std::tuple with curly braces, trivially copyable reference_wrapper- Misc:
- C 17 library is based on C11 instead of c99
保留std [0-9]对于未来的标准库 实用程序函数,例如destion,unitialized_move,unitialialized_value_construct和unitialialized_default_default_default_construct functions - std :: clamp()
GCD和LCM计算 std :: holles_less_less smart Pointer smart Pointers供基于内容进行排序 std :: conjunction,std :: conjunction,std :: conjunction,std :: conjunction,std :: conjunction,std :: std :: negation
在std - sTD :: iS_contigous_layout
sTD :: tod :: tod :: to_chars和to_chars and and __cond :: std :: from_chars - [&& && && && && && && && && && && && && && &&&&&&&&&&&&&&&&&&&&&&&&& && && && && && && && &&&&& swap,IS_Agggregate,has_unique_object_reprprprprprprprproprprprproprprprproprprproprproprprproprprproprprancate,