Is there a way construct an instance of a variadic templated class, where the arguments are only known at run time?
For example,
template <typename... T>
class Example {
Example(T... args){ // some initialization}
}
int main(){
// say i only can find out the type of class Example at run time.
// in the below case it happens to be <int,int,char>
example = make_unique<Example<int,int,char>>(1,2,'a');
}