In C ++ templates, there is a concept with an explicit specifier of template arguments, which means that I can force the compiler to create a template function of this type. eg.
template <class T1, class T2>
void foo(T1 t1prm, T2 t2prm) {
}
foo<double, double>(1,2);
Can I do something similar with the function of the variation template? I do not have a specific use case. Variadic templates are new to me, and I'm just trying to understand the possibilities of a new (well, for me) concept.
source
share