How to Pass a Variadic Pack as the First Argument of a Function in C++ - C++ Stories
Variadic templates and argument packs which are available since C++11 give flexibility in situations when you don’t know the number of inputs upfront. However, they are limited and can only appear at the end of the type sequence.
Have a look at today’s blog post from Jonathan Boccara, who describes a technique that might improve this situation.
How to Pass a Variadic Pack as the First Argument of a Function in C++ - C++ Stories
Variadic templates and argument packs which are available since C++11 give flexibility in situations when you don’t know the number of inputs upfront. However, they are limited and can only appear at the end of the type sequence. Have a look at today’s blog post from Jonathan Boccara, who describes a technique that might improve this situation.
https://www.cppstories.com/2020/09/variadic-pack-first.html/