~/talk

Back to Basics: Declarations in C++

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

Explains concrete rules rather than vague tips: why constexpr requires an initializer with examples of object definitions vs non-defining extern declarations, how T&& becomes a forwarding reference versus an rvalue reference and the deduction contexts that decide it, when to write typename for dependent nested types because of two‑phase template lookup, and the declarator operator precedence that makes pointer vs array vs function meanings. Examples compile or fail to show each rule.

AI-written summary · about

  1. 0:00Declarations in C++
  2. 0:22Declarations vs definitions
  3. 6:11Structure of declarations
  4. 13:43Most vexing parse
  5. 19:24East const style
  6. 21:33Initializers in declarations
  7. 24:01Const differences
  8. 27:33Type name in templates
  9. 31:30Two-phase template translation
  10. 42:25Forwarding references
  11. 52:58Q&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.