C++23
suggest changeC++23 was published as ISO/IEC 14882:2024. It builds on C++20, completing several library areas and adding focused language features. The following lists are representative rather than exhaustive. C++26 was still a draft after this publication.
Language extensions
- Explicit object parameters, often called “deducing
this” if consteval- Multidimensional subscript operators
static operator()andstatic operator[]- Named universal character escapes
- Additional
constexprsupport
Library extensions
std::expectedfor results that contain either a value or an error- Formatted output with
std::printandstd::println std::mdspanfor multidimensional viewsstd::generatorfor coroutine-based generatorsstd::flat_mapandstd::flat_setstd::stacktrace- Monadic operations for
std::optionalandstd::expected - More ranges algorithms, views, and range-aware overloads
Library availability can lag behind language support, so check the relevant standard-library implementation before relying on a feature.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents