BloombergLP::bdlc::BitArray::toggle

toggle overloads

Synopses

Declared in <bdlc_bitarray.h>

Complement the value of the bit at the specified index in this array. The behavior is undefined unless index < length().

void
toggle(std::size_t index);
» more...

Complement numBits bits in this array beginning at index.

void
toggle(
    std::size_t index,
    std::size_t numBits);
» more...

Parameters

NameDescription
indexbit position to complement
numBitsnumber of bits to complement