Putting `integer_sequence` on a diet
summary
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
chapters (4)
related talks
43m“Variadic expansion in examples"
32m`for_each_argument` explained and expanded
01h 01mtuple<>: What's New and How it Works
30mTalking to Typelists
04mGeneralized fold expressions
01h 18m“Variable Templates and Compile-Time Computation with C++14"
01h 04mVariadic Templates in C++11 / C++14 - An Introduction
20mParameter Packs or How Swift Decided to Become C++
