DerivedToFront

Returns L sorted in such a way that the most derived types come first.

template DerivedToFront (
L...
) {}

Members

Aliases

DerivedToFront
alias DerivedToFront = Sort!(DerivedToFrontCmp, L)
Undocumented in source.

Parameters

L

Type tuple.

Return Value

Sorted L.

Examples

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

Meta