This question already has an answer here:
Normally, the type of a function parameter pack is parameterized, e.g.,
template <typename... Args>
void f(Args... args);
What I want is a function parameter pack with a explicitly specified type. My intention is something like:
void f(int... args);
Is there any way to achieve this, or it is basically impossible in C++? Note that I don't want a C variadic function.
Aucun commentaire:
Enregistrer un commentaire