Skip to content

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 ​

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 exceptions
  • std::flat_map / std::flat_set — cache-friendly sorted containers
  • std::mdspan — multidimensional span
  • std::generator — standard coroutine generator
  • if consteval — distinguish consteval from constexpr context
  • [[assume(expr)]] — optimizer hints
SectionConceptsLink
Core Language13Browse →
STL & Library76Browse →

Released under the MIT License.