~/talk

Back to Basics: Templates (part 2 of 2)

Talkat CppCon 2021 · on Friday, 2021-10-29· at 14:45· B) Summit 8/9, online· [rust]
links:none on file
slides:none on file

Covers concrete rules and worked examples: implements a template min (with return-type deduction), builds a stack adapter plus a pointer-specialized partial specialization that changes pop semantics, and implements trait utilities like is_pointer and remove_cv/remove_ref to normalize element types. Explains why reference collapsing and forwarding reference rules enable perfect forwarding, shows two-phase name lookup and instantiation behavior (implicit vs explicit), and demonstrates that the examples compile and behave as claimed.

AI-written summary · about

  1. 0:00Introduction
  2. 1:18Recap
  3. 3:11Translation Units
  4. 4:13Declarations Definitions
  5. 6:46Multiple Definitions
  6. 10:22Template to Specialization
  7. 13:16Two Phase Translation
  8. 15:50Complete Incomplete Types
  9. 17:40Recipe Visibility
  10. 18:21Example
  11. 20:58Value Categories
  12. 29:49Function Templates
  13. 36:00Simple Template Parameters
  14. 36:33Type Inference
  15. 37:22Syntax Forms
  16. 40:04Reference Collapse
  17. 44:11Forwarding Reference
  18. 47:53Informal Steps
  19. 50:04Class Templates
  20. 50:32Template Parameter
  21. 50:58Template Parameter Scope
  22. 52:11Class Scope
  23. 52:21InsertMember
  24. 52:41Stack Angle Bracket
  25. 53:42Const Iterator
  26. 54:12Reverse Iterator
  27. 54:49Cont Iterator
  28. 57:08Static Data Members
  29. 57:47Static Variables
  30. 58:13Full Specialization
  31. 59:43Partial Specialization
~/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.