Check if type is from specific template?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 29 04:10:40 PST 2015


Tofu Ninja:

> Basically what the title says, how do I check if a type T is an 
> instantiation of a specific template?

If you have an updated Phobos std.traits.isInstanceOf could be 
what you look for.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list