Is there a way to get the types of all template parameters?
Atila Neves via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 4 06:38:18 PDT 2015
For regular runtime parameters, there's ParameterTypeTuple. How
would I write an equivalent template for template parameters? i.e.
void fun(Foo foo, Bar bar)() {}
alias types = CtParameterTypeTuple!fun; //TypeTuple!(Foo, Bar)
I've tried but my is expression kung fu was weak.
Atila
More information about the Digitalmars-d-learn
mailing list