What’s New in C++23
summary
Shows concrete C++23 additions and how they behave: std::generator yields an easy coroutine-based infinite sequence, deducing this collapses four boilerplate overloads into one template for value / move semantics, and std::print plus range formatting prints containers directly. Demonstrations build a treat-distribution pipeline using std::views::chunk, zip, cartesian_product and std::ranges::to into containers, swap-endian with std::byteswap, mdspan for 3D boxes, out_ptr for C APIs, and measures when things actually improve cache or fail.
AI-written summary · about
chapters (23)
- 0:00Introduction
- 1:46Meet the cats
- 3:40Ranges for treats
- 6:30Range adapters
- 8:42Point-free style
- 10:27Zip and join
- 12:12Flat map lookups
- 13:55Cartesian product
- 14:37Monadic interface
- 17:47Deducing this
- 26:22Generator coroutines
- 29:58C API wrappers
- 33:25Out pointers
- 35:10Move-only functions
- 37:18Switch and unreachable
- 38:42Multi-dimensional spans
- 40:49Byte swapping
- 42:58OStream span
- 44:25Stack traces
- 47:17Iota view
- 49:26Modules with import
- 50:30Other C++23 features
- 51:32Q&A
related talks
01h 00mC++23 Standard Library Preview
01h 02mC++23: using std::generator in practice
01h 00mC++23: An Overview of Almost All New and Updated Features
01h 23mC++23 Standard Library Preview
01h 03mHow C++20 changes the way we write code
01h 02mC++20 - My Favorite Code Examples
01h 00mC++20 - the hidden pearls
01h 00mC++23 tools you would actually use
