Say I have a variadic template class. How do I create a function such that it's arguments are of a set type, for example int
, with the number of arguments being equal to the number of template types?
template <typename... Types>
class Test
{
public:
void Func(???); // I don't know how to declare such a function
}
Test<string, bool, long> myTest; // Three types
myTest.Func(905, 36, 123315); // Three arguments, but always of type int.
In the end, the goal of the function is to return a tuple of the provided ints. For simplicity I showed the function to be void in the example code.