I can write the following to define a function taking any number of arguments:
template <typename... Arguments>
void f(Arguments... sums) {
// Do something.
}
and then call it like
f(1, 2, 3, 4);
But how do I restrict all arguments to e.g. int?