BitFlags.opCast - multiple declarations

Function BitFlags.opCast

Converts BitFlags to a boolean.

bool opCast(T)();

It is true if any bit is set, false otherwise.

Returns

true if this BitFlags contains any set bits, false otherwise.

Function BitFlags.opCast

Converts to the original type of E (int by default).

OriginalType!E opCast(T)() const;

Returns

this as OriginalType!T.