What is C++17?
C++17 (or c++1z) is the informal name of the next revision of the C + + programming language ISO/IEC standard following c++14. C++17 is now fully functional and is on the way to becoming an international standard. Its norm had reached the stage of the draft international standard in March 2017.
C++17 Standardized Charts
Year |
C + + Standard |
Official name |
1998 |
ISO/IEC 14,882:1998 |
C++98 |
2003 |
ISO/IEC 14,882:2003 |
c++03 |
2011 |
ISO/IEC 14,882:2011 |
C++11 |
2014 |
ISO/IEC 14,882:2014 |
C++14 |
2017 |
Yet to be determined |
C++17 |
By 2020 |
Yet to be determined |
C++20 |
19 new features of C++17
To make Static_assert text information optional
Delete trigraphs
Allow use of TypeName (as an alternative class) in template parameters
New rules from Braced-init-list for automatic derivation
The definition of a nested namespace, for example: Use namespace X::y {...} instead of namespace X {namespace Y {...}}
Properties that allow namespaces and enumerators
New Standard properties: [[[Fallthrough]], [[maybe_unused]] and [[Nodiscard]]
UTF-8 character text
Constant evaluation of all non-type template parameters
Fold Expressions for variable templates
A compile-time static if with the form if constexpr (expression)
A structured binding declaration that now allows auto [A, b] = Gettworeturnvalues ();
Initializers in if and switch statements
In some cases, make sure to copy elision through the compiler (guaranteed copy elision by compilers in some cases)
Some extensions for aligning memory allocations
Template derivation of constructors, allowing std::p Air (5.0, FALSE) instead of std::p air<double,bool> (5.0, FALSE)
inline variables, which allow variables to be defined in the header file
__has_include, allowing the availability of header files to be checked by preprocessor directives
Change the value of __cplusplus to 201703L
From: http://www.masalaanews.com/
Http://www.oschina.net/news/85129/top-19-new-features-of-c17-you-need-to-know
What you need to know about C + + Top 19 new features (with great reviews)