Link to home
Start Free TrialLog in
Avatar of glebspy
glebspy

asked on

Template typedefs

template<class T>
class A{};

template<class T>
typedef A<T> B<T>;


doesn't seem to work.

What is the correct syntax for saying

`for all class T, B<T> is an alternative name for A<T>'

?
Avatar of KangaRoo
KangaRoo

There is none, it is not in the language.
ASKER CERTIFIED SOLUTION
Avatar of KangaRoo
KangaRoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial