BitFlags.opCast

Converts $(D_PSYMBOL BitFlags) to a boolean.

It is $(D_KEYWORD true) if any bit is set, $(D_KEYWORD false) otherwise.

  1. bool opCast()
    struct BitFlags(E)
    bool
    opCast
    (
    T : bool
    )
    ()
  2. OriginalType!E opCast()

Return Value

Type: bool

$(D_KEYWORD true) if this $(D_PSYMBOL BitFlags) contains any set bits, $(D_KEYWORD false) otherwise.

Meta