BaseClassesTuple

Returns all the base classes of T, the direct parent class comes first, $(D_PSYMBOL Object) ist the last one.

The only type that doesn't have any base class is $(D_PSYMBOL Object).

Members

Aliases

BaseClassesTuple
alias BaseClassesTuple = AliasSeq!()
Undocumented in source.
BaseClassesTuple
alias BaseClassesTuple = AliasSeq!(Parents[0], BaseClassesTuple!(Parents[0]))
Undocumented in source.

Parameters

T

Class type.

Return Value

Base classes of T.

Examples

interface I1
{
}
interface I2
{
}
class A : I1, I2
{
}
class B : A, I1
{
}
class C : B, I2
{
}
static assert(is(BaseClassesTuple!C == AliasSeq!(B, A, Object)));
static assert(BaseClassesTuple!Object.length == 0);

Meta