extends

Checks if Child extends Parent in any of the supported ways.

template extends (
Child
Parent
) {}

Members

Manifest constants

extends
enum extends;
Undocumented in source.

Parameters

Child

The base class to test.

Parent

The parent class to test.

Return Value

Whether Child "extends" Parent.

Examples

struct S1 { }
struct S2 { }
struct C1 { }
struct C2 { }
assert( !extends!( C1, C2 ) );
assert( !extends!( S1, S2 ) );
assert( !extends!( S1, C2 ) );
assert( !extends!( C1, S2 ) );
assert( !extends!( float, bool ) );

Meta