~/lightning

Putting `integer_sequence` on a diet

Lightningat C++Now 2019 · 2019-05-05..05-10· [compilers-and-language-design]
slides:none on file

Shows how to enumerate parameter packs while keeping the index at compile time and removing indirection: first uses a templated lambda operator() trick to pass an integral_constant index to each element so no runtime argument or extra helper is needed; then proposes making std::integer_sequence decomposable so the newer expansion statements can inline the index expansion directly. Claims this requires only a small library change to support structured bindings for integer_sequence and demonstrates working code for both approaches.

AI-written summary · about

  1. 0:00Start
  2. 1:47Reemployment Enumeration
  3. 2:22Expansion Statements
  4. 3:49Structure Bunny
~/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.