¡@

Home 

c++ Programming Glossary: nth_value_of

How to make generic computations over heterogeneous argument packs of a variadic template function?

http://stackoverflow.com/questions/14261183/how-to-make-generic-computations-over-heterogeneous-argument-packs-of-a-variadic

static for int i 0 i sizeof... args i PSEUDO CODE foo nth_value_of i args Which would get translated at compile time into something.. template typename... Ts void my_function Ts ... args foo nth_value_of 0 args foo nth_value_of 1 args ... foo nth_value_of sizeof..... void my_function Ts ... args foo nth_value_of 0 args foo nth_value_of 1 args ... foo nth_value_of sizeof... args 1 args In principle..