+ 3
How should templates be used?
In sololearn course, they used following syntax for template declaration template <class t> function () and somewhere online i saw that we can also use template <typename t> function () so what is different between both and which one is better.
2 Réponses
+ 1
Friend actually
template <typename T> // It's use for declaring function template with template parameter.
on the other hand
template <class T> //It use for class template
+ 3
thanks bro