hasSameMembers

Checks if Child extends Parent by having a matching set of members.

Members

Manifest constants

hasSameMembers
enum hasSameMembers;
Undocumented in source.
hasSameMembers
enum hasSameMembers;
Undocumented in source.

Parameters

Child

The base class to test.

Parent

The parent class to test.

Return Value

Whether Child has all the members of Parent.

Examples

struct S1
{
    @property int x() { return 42; }
}

struct S2
{
    @property int x() { return 42; }
}

assert( hasSameMembers!( S1, S2 ) );

Meta