setBit

Test and sets the bix:th bit of a to one. * * Returns: A non-zero value if the bit was set, and a zero if it was clear.

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

Meta