isPolymorphicType

Determines whether T is a polymorphic type, i.e. a $(D_KEYWORD class) or an $(D_KEYWORD interface).

enum bool isPolymorphicType(T);

Return Value

$(D_KEYWORD true) if T is a $(D_KEYWORD class) or an $(D_KEYWORD interface), $(D_KEYWORD false) otherwise.

Examples

interface I
{
}
static assert(isPolymorphicType!Object);
static assert(isPolymorphicType!I);
static assert(!isPolymorphicType!short);

Meta