Say I have a template class defined as
template <typename T> class Temp{
I can either implicitly or explicitly instantiate it:
Temp<int> ti; template class Temp<char>;
With an explicit instantiation, my program must contain an instance, even if I will not use it later (suppose that it is not skipped by compiler optimization).
My question is, do the following statements lead to an instance of the class?
typedef Temp<short> TShort; using TFloat = Temp<float>;
c ++ templates
iBug
source share