~/talk

“Template Normal Programming (part 1 of 2)”

Talkat CppCon 2016 · 2016-09-18..09-23· [c-and-cpp]
slides:none on file

Covers practical rules and gotchas for everyday C++ templates: how to use and test templates with __PRETTY_FUNCTION__, when to prefer variable templates or alias templates, and why alias templates cannot be specialized. Shows concrete fixes: explicitly supply template arguments or stop a parameter from participating in deduction (avoids the std::max error), use + to convert a lambda to a function pointer, and explains reference collapsing/forwarding references so you know what T deduces to and when implicit conversions fail.

AI-written summary · about

  1. 0:00Introduction to templates
  2. 9:20Kinds of templates
  3. 14:52Template type deduction
  4. 22:19Advanced deduction rules
  5. 28:22References and collapsing
  6. 45:46Template specialization
  7. 52:30Specialization constraints
~/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.