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
bool
anySet
const pure @safe nothrow @nogc
(
)

Examples

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

Meta