~/talk

Modern Template Techniques

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
name:Jon Kalb
github:boostcon
slides:none on file

Shows concrete recipes and why they matter: implements an add template using trailing return + decltype and then simplifies with auto; chooses memcpy vs std::copy by detecting std::is_trivially_copyable with enable_if vs constexpr if and tag dispatch for optimal complexity; builds a timing wrapper that uses perfect forwarding (forwarding references + parameter packs and std::forward) to wrap any call, compile-time discards unused branches, and accumulates elapsed time successfully.

AI-written summary · about

  1. 0:00Start
  2. 1:52Template Challenge
  3. 7:03Type Traits
  4. 9:28Type Functions
  5. 15:08Compile-time Conditional Overloading
  6. 24:35Constexpr Conditional
  7. 28:30Policy Classes
  8. 35:27Perfect Forwarding
  9. 49:36The Standard
  10. 52:00Compiler
~/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.