~/talk

Back to Basics: Master C++ Value Categories With Standard Tools

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

Clear claim: value category is a property of an expression, not an object. Examples show a single line producing two objects when a const return blocks a move. Concrete rules and tools include binding rules for initialization/function return, language changes (C++17 guaranteed copy elision, C++20 implicit move, C++23 explicit object parameter) and std utilities: std::move, std::forward, std::decay_t, std::declval. Slides link to GitHub and Godbolt snippets for exact code and counts.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37Motivation
  3. 8:10References
  4. 9:05Value Category
  5. 14:12Value Category Evolution
  6. 15:21Reference and Move Semantics
  7. 18:23Implicit Move
  8. 19:37Terminology
  9. 21:35Lvalue
  10. 22:56PRvalue
  11. 23:31Xvalue
  12. 24:37Real Life Code
  13. 28:24Function Calls
  14. 33:09Guaranteed Copy Illusion
  15. 34:20Materialization
  16. 34:43Standard Terminology
  17. 36:31Summary
  18. 37:09Reference Collision
  19. 37:28Reference Collision Example
  20. 38:39Forwarding Reference
  21. 40:15Conclusion
  22. 40:38Move
  23. 41:20Code Snippets
  24. 42:03Stand Forward
  25. 42:47Overloads
  26. 43:52Decay
  27. 45:00Decal Type
  28. 46:27DecalVal
  29. 47:55Reducing
  30. 48:29Overload
  31. 48:44Single Declaration Template
  32. 49:21Other Tools
  33. 49:43Recap
~/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.