How C++23 changes the way we write code
summary
C++23 adds concrete tools that change code: deducing this replaces boilerplate CRTP and four const/ref overloads by letting member functions take the actual derived type (one implementation instead of four); std::expected returns value-or-error so happy paths stay allocation-free while preserving specific error info instead of optional or exceptions; std::mdspan gives non‑owning multi‑dimensional views with layout_right/layout_left and pluggable layouts/accessors (Hilbert mapping, atomic accessors); std::print provides safe, fast Unicode-capable formatting and a printline convenience that replaces awkward iostream idioms.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 9:49Deducing this impact
- 22:05Expected error handling
- 34:23MD span for arrays
- 48:20Print and hello world
- 57:34Q&A
related talks
01h 33mHow C++23 Changes the Way We Write Code
01h 30mTaming C++23 - The Things About C++23 You Do Not Know
38mWhat's New In C++23
01h 02mHow C++20 Changes the Way We Write Code
24mC++17 and 20 Goodies
01h 01mC++20: What's in it for you?
01h 35mC++20 – My Favourite Code Examples
01h 11mThree Cool Things in C++26: Safety, Reflection & std::execution
