Cuadrix
Cuadrix

Reputation: 523

C++ Use alias for 'typename'?

I'm working with templates, and it's getting kinda tedious to write "typename" multiple times. Is it possible to assign an alias to it? I understand that the below doesn't work, is there any other ways?

typedef typename tn;

Upvotes: 1

Views: 151

Answers (1)

Jarod42
Jarod42

Reputation: 217275

You might use MACRO

#define tn typename

Upvotes: 3

Related Questions