This file lists C++ versions and their introduced featuers/Keywords.
namespacemutableexplicittypenamebool,true,falseusingconst_cast,static_cast,reinterpret_cast,dynamic_cast
autonullptrconstexprdecltypeoverride,finalnoexceptthread_localstatic_assertalignas,alignofenum class- Range-based
for - Lambda functions
[=](){}
- Generic lambdas
- Return type deduction for functions
std::make_unique- Binary literals
0b1010 - Digit separators
' - Relaxed constexpr restrictions
inlinevariables- Structured bindings
auto [a,b] = pair if constexpr[[nodiscard]],[[maybe_unused]]std::optional,std::variant,std::any- Fold expressions
(args + ...) - Filesystem library
<filesystem>
- Concepts (
requires,concept) - Coroutines (
co_await,co_yield,co_return) consteval,constinit- Modules (
export module,import) - Ranges library
std::span,std::formatconstexpralgorithms
constexprforstd::vectorstd::expectedif constevaldeducing this- Expanded ranges, new
std::print