~/talk

Inference in C++: The big picture

Talkat CppCon 2019 · 2019-09-15..09-20· [compilers-and-language-design]
links:none on file
slides:none on file

C++ evolves inference across standards (auto in C++11, generic lambdas C++14, CTAD in C++17, Concepts in C++20) and the claim is that using them together removes brittleness and lets code flip between runtime and compile-time dispatch with tiny edits (one added or removed auto). Concrete tools and examples: class template argument deduction and ranges::to let pipelines deduce correct container types; type_identity<T> disables unwanted deduction; prefer constrained auto to avoid silent breaks. One production case drops dozens of instructions to a single jump.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17Why generic programming
  3. 8:53Motivating examples
  4. 12:31History of inference
  5. 19:17C++20 concepts
  6. 25:01Type identity
  7. 28:23Big picture of inference
  8. 31:20First example revisited
  9. 36:32Limitations and reality
  10. 40:54Second example revisited
  11. 46:14Best practices
  12. 56:01Key takeaways
  13. 57:49Q&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.