The following are functionally equivalent:
template <typename T> T f(T &a);
template <class T> T f(T &a);
'typename' was added to the standard to make the declarations less confusing. 'typename' is the preferred keyword to use.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment