IntFlags.anySet

true if any non-null flag is set, otherwise false.

An IntFlags value is implicitly convertible to bool through anySet.

struct IntFlags
@property const pure @safe nothrow @nogc
bool
anySet
()

Examples

IntFlags flags;
assert(!flags);
flags = IntFlag.imag | IntFlag.undef;
assert( flags);

Meta