~/talk

Implementing `static` control flow in C++14

slides:none on file

Shows a concrete C++14 implementation of compile‑time branching and looping: a static_if implementation using generic lambdas, variable templates and std::integral_constant, plus a recursive static_for with accumulator that exposes index, break/continue and returns a compile‑time value. Code lives on GitHub, compiles with GCC7/Clang4, integrates with Boost.Hana/fit examples, is used in VM core and ecsst prototypes, and assembly comparisons show no measurable runtime cost — it works.

AI-written summary · about

  1. 0:00Start
  2. 0:11Talk overview
  3. 0:46What is "static" control flow?
  4. 1:22Example: static if in D
  5. 2:39Example: handling variadic argument packs (traditional)
  6. 3:23Example: handling variadic argument packs (static if)
  7. 5:23History of static if proposals - 1
  8. 12:29C++14 static if -instantiating matching branch
  9. 13:28find matching branch
  10. 13:47instantiate and call matching branch
~/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.