Get struct template types

ed growlercab at gmail.com
Tue Feb 4 01:30:20 PST 2014


Hi,

given a struct like so:

struct S(alias N, T) {...}

is there a way to get the template parameters of S? Something 
like:

S.typetuple[0] == N,
S.typetuple[1] == T

I've had a look at std.typecons and std.typetuple but I don't see 
what I'm missing something and cannot see a way to do the above.

Thanks,
ed


More information about the Digitalmars-d-learn mailing list