I am slightly confused about c++ template.
Considering the template below
template<class TYPE>
void function(TYPE data)
and
template<typename TYPE>
void function(TYPE data)
My confusion is exactly what is the difference between typename and class used as variable identify or type.
Aucun commentaire:
Enregistrer un commentaire