How C++23 changes the way we write code
summary
C++23 claims to finish C++20 while adding a few punchy, practical features: std::expected provides value-or-error returns that propagate through algorithms (accumulate example) without exceptions, supports variant-based error stacks and monadic chaining; std::mdspan delivers a non‑owning multi‑dimensional view with pluggable layouts (row/column/tiled) so scientific arrays and Fortran interop avoid copies and awkward pointer hacks; deducing this removes quad‑overloads, simplifies CRTP and enables recursive lambdas; std::print wraps std::format, fixes Unicode and stream ergonomics. Feature work happens during the COVID‑19 redesign.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 4:20Philosophy of new features
- 7:15Filtering C++23 features
- 19:44Deducing this
- 42:30Std::expected
- 1:01:29Mdspan
- 1:22:01Print and conclusion
related talks
57mSoftware Architecture Lessons from Multidimensional Spaces Explorations
01h 05mBetter C++ ranges
01h 04mEffective Ranges: A Tutorial for Using C++2x Ranges
01h 06mConquering C++20 Ranges
01h 05mPipeline architectures in C++
01h 00mMissing (and future?) C++ range concepts
01h 00mDesign Idioms from an Alternate Universe
01h 00mBack to Basics: (Range) Algorithms in C++
