isClass

Is A a class. I know is(A == class) exists, but I feel awkward about it every time, so I made a wrapper

template isClass (
A
) {}

Members

Variables

isClass
enum bool isClass;
Undocumented in source.

Examples

struct A {}
enum B { C = 1 }
assert(!isClass!A);
assert(!isClass!B);
assert(isClass!Object);
assert(!isClass!int);

Meta