~/lightning

'static_if' in C++14

Lightningat Meeting C++ 2015 · 2015-12-04..12-05· [rust]
slides:none on file

implements static_if in C++14 as a header‑only library and shows working code on GitHub https://github.com/SuperV1234/meetingcpp2015/tree/master/1_StaticIf, using C++14 variable templates, integral_constant and generic lambdas to dispatch at compile time. Examples include a consume(type) demo that picks eat or drink without instantiating nonmatching branches and a recursive pack example; performance is zero‑overhead and code compiles. For production the uploader recommends boost Hana or fit by Paul FZ II.

AI-written summary · about

~/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.