InterfacesTuple

Parameters

T

The class or interface to search.

Return Value

std.meta.AliasSeq of all interfaces directly or indirectly inherited by this class or interface. Interfaces do not repeat if multiply implemented.

InterfacesTuple!Object yields an empty AliasSeq.

Examples

interface I1 {}
interface I2 {}
class A : I1, I2 {}
class B : A, I1 {}
class C : B {}

alias TL = InterfacesTuple!C;
static assert(is(TL[0] == I1) && is(TL[1] == I2));

Meta