~/talk

C++20: The small things

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
slides:none on file

C++20 tightens and fills gaps: it adds designated initializers, redefines aggregates so they cannot have user-declared constructors, and permits parenthesis initialization for aggregates and arrays; it introduces constinit to force compile-time initialization without const, a range-based for initializer, and structured bindings that can be captured in lambdas. Lambdas become usable in unevaluated contexts and default-constructible; functions gain auto parameters; non-type template parameters accept literal types; compilers auto-generate CTAD guides; and utilities like is_constant_evaluated and no_unique_address land.

AI-written summary · about

  1. 0:00Intro
  2. 1:24Agenda
  3. 3:04Aggregates
  4. 6:25Aggregate constructors
  5. 8:02Macros
  6. 9:15Parens
  7. 10:46Static Objects
  8. 15:32Initializers
  9. 17:02Structuring
  10. 19:29Lambdas
  11. 24:01Templates
  12. 27:15NonTab Template Parameters
  13. 32:14Questions
  14. 34:09Class template argument deduction
  15. 36:51Constant Expert
  16. 40:14Constanteval
  17. 43:31Inverse Square
  18. 44:46Constant Evaluated
  19. 46:16Context Per
  20. 50:28Template tightening
  21. 52:22New attributes
  22. 54:19Avoiding bug
  23. 55:53Unicode literals
~/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.