isSubclassOf

Is A a subclass of B

template isSubclassOf (
A
B
) if (
isClass!A &&
isClass!B
) {}

Members

Variables

isSubclassOf
enum bool isSubclassOf;
Undocumented in source.

Examples

class A {}
class B {}
class C : A {}
class D : C {}
assert(!isSubclassOf!(A, A));
assert(!isSubclassOf!(B, A));
assert(isSubclassOf!(C, A));
assert(isSubclassOf!(D, A));

Meta