TemplateOf

Returns an alias to the template that T is an instance of. It will return void if a symbol without a template is given.

Examples

struct Foo(T, U) {}
static assert(__traits(isSame, TemplateOf!(Foo!(int, real)), Foo));

Meta