~/talk

Variants of variadic AND

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

Implement a template that takes any number of bools and yields true only if all are true. Options shown: recursion base case and recursive constexpr functions, a noexcept trick that builds noexcept helper constructors, a partial-specialization trick that prepends and appends true and compares specializations, and C++17 fold expressions. Measurements: one argument is instant, recursion gets noticeably slower with arity, some approaches crash compilers at high arity, and fold expressions measured ~2000× slower than the fastest variant.

AI-written summary · about

  1. 0:00Start
  2. 0:29Recursion
  3. 2:54Fold Expressions
  4. 3:23Readability and Performance
~/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.