BloombergLP::bdlc::BitArray::toggle

Complement numBits bits in this array beginning at index.

Synopsis

Declared in <bdlc_bitarray.h>

void
toggle(
    std::size_t index,
    std::size_t numBits);

Description

Complement the values of each of the specified numBits in this array, beginning at the specified index. The behavior is undefined unless index + numBits <= length().

Parameters

NameDescription
indexstarting bit position to complement
numBitsnumber of bits to complement