~/talk

A Tour of C++ Recognised User Type Categories

Talkat CppCon 2022 · 2022-09-11..09-16· [typescript]
links:none on file
slides:none on file

Concrete rules and gotchas for when user types actually gain special behaviour across C++ versions: precise definitions and examples for aggregate types, standard-layout and trivially copyable types, what permits safe memcpy and when it is UB, how unions enable reading a common initial sequence, what implicit-lifetime types change for placement/newless initialization, no_unique_address effects, structural types as non-type template parameters, and where wording changed (examples and compiler/trait implications are shown).

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Why am I here
  3. 1:12About the book
  4. 2:01Why we have special types
  5. 2:57C Object Model
  6. 3:49Object Representation
  7. 4:09Types
  8. 4:38Objects
  9. 5:16Aggregates
  10. 6:14Aggregate Initialization
  11. 7:05Designated Initialization
  12. 8:07Question of Aggregate
  13. 8:33Definition of Aggregate
  14. 12:09Library Trade
  15. 13:31Limitations
  16. 14:30Standard Layout
  17. 14:54Standard Access Control
  18. 16:25Base Classes
  19. 16:37Unique No Unique Address
  20. 17:27Structure
  21. 18:04Classes
  22. 19:05Common Initial Sequence
  23. 21:07STD Standard Layout
  24. 21:42Useful and Not Useful
  25. 22:16Copyable Types
  26. 22:55CopyMove
  27. 23:15Destruct
  28. 23:33Copyable
  29. 25:38Undefined
  30. 26:04Copy
  31. 26:53trivial
  32. 27:21for nothing
  33. 27:37trivial types
  34. 28:11pod types
  35. 29:03original definition
  36. 29:52trivial standard layout
  37. 30:20library
  38. 30:36literal types
  39. 30:49compile time
  40. 32:01constant expression
  41. 33:04compiletime
  42. 35:28Closure
  43. 35:56Destructor
  44. 36:37Trait
  45. 38:09Structural
  46. 39:54Implicit Lifetime Types
  47. 40:04Object Lifetime
  48. 40:20undefined Behavior
  49. 40:52Array
  50. 41:07Arithmetic
  51. 42:40Aggregate Classes
  52. 43:32ObjectLifetime
  53. 43:54Arrays
  54. 44:12Implicit Lifetime
  55. 45:13Conclusion
  56. 46:23Can they be implemented in C
~/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.