dimanche 6 décembre 2020

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;

Aucun commentaire:

Enregistrer un commentaire