~/talk

Alices adventures in Template Land

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
links:none on file
slides:none on file

Code implements an index type that deduces key and model types from a pointer-to-member so callers write a single template argument and get maps and extractors generated automatically. It handles data members, member functions and free functions by combining partial specializations, decltype/decay, and std::invoke, and keeps the implementation compact (example under 100 lines). Development uses Godbolt and cppinsights to iterate and inspect generated code, and slides plus example code are linked in the uploader's materials.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:34The problem with boilerplate
  3. 6:28Exploring boost solutions
  4. 8:27Pointers to data members
  5. 13:05Template basics
  6. 15:40Alias and variable templates
  7. 18:24Template parameters
  8. 21:24Template specialization
  9. 24:36Implementing the index class
  10. 30:22Handling member functions
  11. 34:43Solving type deduction issues
  12. 39:00The type extractor pattern
  13. 44:25Final implementation results
  14. 47:42Tooling and final thoughts
  15. 55:34Q&A and alternative methods
~/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.