C++23 — The Refinement II
Year: 2023 · Concepts: 89 (13 core + 76 STL)
C++23 builds on C++20's foundations, refining ranges and coroutines, adding important quality-of-life features, and bringing std::print for finally easy formatted output.
Sections
- Core Language (13 concepts) — Deducing
this,if consteval,[[assume]], multidimensional subscript operator, explicit object parameters. - STL & Library (76 concepts) —
std::print,std::expected,std::flat_map,std::mdspan,std::generator, ranges improvements.
Key Features
- Deducing
this— explicit object parameter for CRTP without CRTP std::print/std::println—std::println("Hello, {}!", name);std::expected<T, E>— monadic error handling without exceptionsstd::flat_map/std::flat_set— cache-friendly sorted containersstd::mdspan— multidimensional spanstd::generator— standard coroutine generatorif consteval— distinguish consteval from constexpr context[[assume(expr)]]— optimizer hints
Navigation
| Section | Concepts | Link |
|---|---|---|
| Core Language | 13 | Browse → |
| STL & Library | 76 | Browse → |