~/talk

Modern techniques for keeping your code dry

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [c-and-cpp]
slides:none on file

Shows how to build zero-cost abstractions in modern C++ using fold expressions, constructor template argument deduction and deduction guides, lambda factories, tuple+apply and small higher-order helpers to write readable predicates like any_of/each_of. Claims the generated assembly is identical across clang GCC and MSVC, so no runtime cost. Delivers working code that builds readable checks, a bind-right helper and tuple-as-lambda tricks, but notes unpleasant repetition for conditional noexcept and explicit return-type SFINAE that currently force macros or awkward boilerplate.

AI-written summary · about

  1. 0:00Introduction
  2. 0:36Repetition
  3. 2:05About me
  4. 3:43Function templates
  5. 6:08Nontype templates
  6. 8:25Construct an object
  7. 10:55Construct a type
  8. 14:24Private inheritance
  9. 19:12Good or bad
  10. 24:59Indirection
  11. 43:44Perfect forwarding
~/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.