~/talk

“Template Normal Programming (part 2 of 2)"

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

Explains how to get real-world template code to behave: implement partially specialized function behavior by delegating to a class-template is_pointer_impl; move full specializations out of headers using extern template / template (explicit instantiation) so reverse<utf8> can be defined in a .cpp; use tag dispatch + iter_traits with true_type/false_type for fast vs generic iterator advance; warns about instantiation rules, static_assert firing only when needed, linker fragility, and C++17 features like class template argument deduction and deduction guides.

AI-written summary · about

  1. 0:00Partial specialization
  2. 1:28Translation units
  3. 4:26Explicit instantiation
  4. 6:11Class template members
  5. 8:21Name mangling risks
  6. 10:42Refresher and Q&A
  7. 12:17Template idioms
  8. 15:25Type traits
  9. 17:31Keyword typename
  10. 22:54Traits classes
  11. 25:17ODR usage
  12. 28:24Linker behavior
  13. 30:37Instantiation rules
  14. 32:47Static assert
  15. 34:26Lazy instantiation
  16. 37:32Variable templates
  17. 38:31Variadic deduction
  18. 41:33Pack expansion
  19. 43:55Parameter packs
  20. 45:41Deduction edge cases
  21. 49:45C++11 features
  22. 50:45Template auto
  23. 52:39Class deduction
  24. 55:43Deduction guides
  25. 57:47Advanced guides
~/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.