What's the difference between template<typename T> and template<class T> ?
I always use the "typename" version, but I came across with this class one and I need to know the difference..
What's the difference between template<typename T> and template<class T> ?
I always use the "typename" version, but I came across with this class one and I need to know the difference..
There is no difference. You can use either typename or class to designate a type parameter in a template.