From a modern to an unbelievably modern C++
summary
Compares concrete C++11/14 patterns to modern replacements and shows what changes, why they catch bugs and how to migrate incrementally: uses structured bindings to avoid first/second mistakes, uses an if-with-initializer to confine iterators, replaces sub_str copies with std::string_view, adopts std::variant/std::visit, fold expressions and named constraints (Concepts) to move checks to compile time, highlights std::format, std::span and mdspan (ten years to standardize) and notes large-codebases took about three years to reach C++23.
AI-written summary · about
chapters (21)
- 0:00Introduction to modern C++
- 3:53Extracting values from pairs in C++11/14
- 5:16Structured bindings in C++17
- 5:58Safer iterators with if statements
- 8:07Compile-time if statements in C++17
- 11:20Unions and std::variant in C++17
- 13:52Discard attribute for return values
- 15:19String views for efficient substrings
- 17:27Fold expressions in C++17 templates
- 21:00std::span in C++20
- 23:33Safe size types in C++20
- 24:59std::format for string concatenation
- 26:25No discard with description in C++20
- 27:52Concepts for type constraints
- 31:17C++20 features overview
- 32:00Migrating to modern C++ standards
- 35:55Subscript operator changes in C++20/23
- 39:28Square bracket operator overloading in C++23
- 40:10More C++23 features
- 41:37When to upgrade to new standards
- 46:19Q&A on modern C++ features
