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)
    @safe pure nothrow @nogc pragma(inline, true) @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