isPartOfUnion

Undocumented in source.
template isPartOfUnion (
UnionT
ValueT
) {}

Members

Functions

func
bool func()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

isPartOfUnion
enum isPartOfUnion;
Undocumented in source.

Examples

static union U
{
    int a;
    string b;
}

static assert(isPartOfUnion!(U, int));
static assert(isPartOfUnion!(U, string));
static assert(!isPartOfUnion!(U, short));
static assert(!isPartOfUnion!(U, bool));

Meta