isTemplateInstance

template isTemplateInstance (
T
) {
enum isTemplateInstance;
}

Return Value

true iff T is a template instance, false otherwise.

Examples

struct S(T) { T x; }
static assert(isTemplateInstance!(S!int));
static assert(!isTemplateInstance!(int));

Meta