fenbf / cppstories-discussions

4 stars 1 forks source link

2020/09/variadic-pack-first.html/ #139

Open utterances-bot opened 2 months ago

utterances-bot commented 2 months ago

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/

michalfapso commented 2 months ago

Thanks for sharing this trick, Jonathan! It saved my day :)