How many instances are created after called in a template function/class ?
Printable View
How many instances are created after called in a template function/class ?
What?
template <class C>
void func(C a)
{
// do something
}
and in call main
{
func<int>(6);
func<double>(10.5);
}
You're going to have to clarify the question.
Your question isn't clear, but it seems the debugger and a breakpoint in your class constructor should answer it.