How to Pass a Variadic Pack as a First Argument of a Function in C++
▻https://www.fluentcpp.com/2021/01/22/how-to-pass-a-variadic-pack-as-a-first-argument-of-a-function-in-cpp
I originally wrote this post for Bartek’s blog. Here is a link to the original post. In C++, the normal way of passing a variadic pack of parameters is at the last position of the function: template<typename A, typename... Bs> void f(A&& a, Bs&&... bs) // implementation of f... But what if the […]