~/talk

Classes C++23 Style

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [typescript]
slides:none on file

Summary of concrete takeaways: prefer rule of zero for simple value types and implement the rule of five only when managing memory; build small resource wrappers that are deliberately move-only (example: a file wrapper that moves correctly) and use the new move-only function to hold callbacks; make as many APIs constexpr/constinit as possible and exploit transient compile-time allocations for validation; specialize std::formatter for types to enable std::print and use deducing this to replace cumbersome ref-qualified accessor overloads.

AI-written summary · about

  1. 0:00C++23 class design
  2. 1:27Class lifecycle
  3. 4:56Rule of zero
  4. 8:08Rule of five
  5. 9:34Move-only wrappers
  6. 11:24Move-only functions
  7. 13:33Non-copyable non-movable types
  8. 14:58std::print output
  9. 15:40Value type comparisons
  10. 16:26Equality challenges
  11. 20:45Consteval compile-time
  12. 23:15const vs constinit
  13. 25:00Compile-time allocations
  14. 26:30Static_assert errors
  15. 28:59UB checking
  16. 30:01Formattable types
  17. 34:36Deducing this
  18. 42:26Summary
  19. 42:47Q&A
~/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.