C++17
suggest changeC++17 was published as ISO/IEC 14882:2017. During development it was commonly
called C++1z; modern compiler options use c++17.
Language Extensions
- Fold Expressions
- Non-type template parameters declared with
auto - Guaranteed copy elision
- Template parameter deduction for constructors
- Structured bindings
- Compact nested namespaces
- The
[[fallthrough]],[[nodiscard]], and[[maybe_unused]]attributes - Optional diagnostic messages for
static_assert - Initializers in
ifandswitch - Inline variables
if constexpr- Order of expression evaluation guarantees
- Dynamic memory allocation for over-aligned data
Library Extensions
std::optionalstd::variantstd::string_viewmerge()andextract()for associative containers- The
<filesystem>library - Parallel overloads of many standard algorithms
- Mathematical special functions in
<cmath> - Node handles for associative containers
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents