The OpenD Programming Language

isOriginalMember

Checks if T has a field member.

enum bool isOriginalMember(T, string member);

Examples

struct D
{
    int a;
    alias b = a;
}

static assert(isOriginalMember!(D, "a"));
static assert(!isOriginalMember!(D, "b"));

Meta