~/talk

C++17 and 20 Goodies

Talkat Akademy 2020 · 2020-09-04..09-11· [c-and-cpp]
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 2:30Converting to string
  3. 3:45Prettier type traits - tand v suffixes (C++17)
  4. 5:44Compile-time if (C++17)
  5. 8:50Concepts and constraints (C++20)
  6. 10:41Map lock
  7. 11:24If, for, switch with initializer
  8. 12:11New lock guard (C++17)
  9. 12:52CTAD (C++17)
  10. 15:37Structured bindings (C++17)
  11. 18:06Algorithms
  12. 20:46Fold expressions (C++17)
  13. 21:36invoke (C++17)
  14. 22:33Answers? Questions Questions? Answers!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.