C++17 and 20 Goodies
summary
Compiles claim C++20 is ratified and most compilers already support C++17 and then catalogs concrete small wins: use of if constexpr to avoid SFINAE workarounds, new type trait aliases like _v/_t and std::remove_cvref_t, class template argument deduction and deduction guides, scoped_lock for multiple mutexes, std::reduce with execution policies and std::ranges to avoid begin/end, fold expressions for variadic accumulation, std::invoke and the new std::format; notes that structure bindings are references which can surprise return/move semantics.
AI-written summary · about
chapters (14)
- 0:00Intro
- 2:30Converting to string
- 3:45Prettier type traits - tand v suffixes (C++17)
- 5:44Compile-time if (C++17)
- 8:50Concepts and constraints (C++20)
- 10:41Map lock
- 11:24If, for, switch with initializer
- 12:11New lock guard (C++17)
- 12:52CTAD (C++17)
- 15:37Structured bindings (C++17)
- 18:06Algorithms
- 20:46Fold expressions (C++17)
- 21:36invoke (C++17)
- 22:33Answers? Questions Questions? Answers!








