setBit

Test and sets the bix:th Bit Of a to one.

  1. void setBit(T a, I bixs)
    @safe @nogc pure nothrow
    void
    setBit
    (
    T
    I...
    )
    (
    ref T a
    ,)
    if (
    isIntegral!T &&
    allSatisfy!(isIntegral, I)
    )
  2. void setBit(T a, I bixs)

Return Value

Type: void

A non-zero value if the bit was set, and a zero if it was clear.

Meta