• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

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>'

?
0
glebspy
Asked:
glebspy
  • 2
1 Solution
 
KangaRooCommented:
There is none, it is not in the language.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now