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

Name

Description

index

starting bit position to complement

numBits

number of bits to complement

Created with MrDocs