Getting template details?

Simen kjaeraas simen.kjaras at
Sat Dec 5 22:20:28 PST 2009

Inspired by Nick's post on stringof weirdness, I started wondering - is
there a way to get ahold of the FQN of the template (not the
instantiation), given an instantiation? Same goes for getting a typetuple
of the parameters. Anyone know?

Basically, what I thought might work would be:

template getTemplate( T : U!( V ), U, V... ) {
     alias U getTemplate;

template TemplateParameters( T : U!( V ), U, V... ) {
     alias V TemplateParameters;


More information about the Digitalmars-d-learn mailing list