+ 1

What is the use of 'typename' keyword in C++?

Is 'tyename' keyword similar to the keyword 'class' in C++? If yes, what's the difference between them?

29th Oct 2016, 7:48 AM
Manasi Srivastava
Manasi Srivastava - avatar
1 Respuesta
+ 1
typename is not similar with class. typename is used for defining users own types such as you can define=> typename vector<int> myintvector hope it helps
29th Oct 2016, 11:26 AM
Muhammed Enis Mıhçıoğlu
Muhammed Enis Mıhçıoğlu - avatar