What is the difference in using "class" or "template type" while declaring a template parameter? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

What is the difference in using "class" or "template type" while declaring a template parameter?

16th Oct 2016, 5:53 PM
Neha Bit
Neha Bit - avatar
2 Respuestas
+ 1
There is no difference.
20th Oct 2016, 4:17 PM
V. A. Timiriliyev
V. A. Timiriliyev - avatar
0
In class we have to define parameters for different types while in template they are written only once and work with different types.
27th Nov 2016, 7:03 AM
mahima