~/talk

Variadic and Variable Templates in C++14

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

C++14 features get shown through concrete code: a type-safe printline via parameter packs implemented by recursive template unpacking and a required base case, a variable-template factorial and a looser constexpr version that runs loops at compile time, a compile-time FizzBuzz built with std::index_sequence and tuples plus enable_if and static_assert tests, and a sine lookup table generated as a variable template for embedded use; examples expose compiler limits (instantiation/step caps) and demonstrate that std::apply and tuple utilities actually work.

AI-written summary · about

  1. 0:00Intro
  2. 0:22Problems varying number of arguments
  3. 3:39Reminder: functions, templates. patterns
  4. 5:17Defining a variadie template function
  5. 20:59Example template class Sack
  6. 22:31template template parameters
  7. 23:39template variadie template parameters
  8. 32:34Variable Templates
  9. 35:00C++14 constexpr function rules
  10. 43:11integer sequence index sequence
  11. 53:03Testing the variable template version
~/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.