MostDerived

Returns the type from the type tuple L that is most derived from T.

Members

Aliases

MostDerived
alias MostDerived = T
Undocumented in source.
MostDerived
alias MostDerived = MostDerived!(T, L[1..$])
Undocumented in source.
MostDerived
alias MostDerived = MostDerived!(L[0], L[1..$])
Undocumented in source.

Parameters

T

The type to compare to.

L

Type tuple.

Return Value

The type most derived from T.

Examples

class A
{
}
class B : A
{
}
class C : B
{
}
static assert(is(MostDerived!(A, C, B) == C));

Meta