xorEqual overloads

Synopses

Declared in <bdlc_bitarray.h>

XOR the bit at the specified index in this array with the specified value (retaining the result). The behavior is undefined unless index < length().

void
xorEqual(
    std::size_t index,
    bool value);

Bitwise XOR a bit range from srcArray into this array.

void
xorEqual(
    std::size_t dstIndex,
    BitArray const& srcArray,
    std::size_t srcIndex,
    std::size_t numBits);

Parameters

Name

Description

index

bit position to modify

value

bit value to XOR at index

dstIndex

starting index in this array

srcArray

array providing the source bits

srcIndex

starting index in srcArray

numBits

number of bits to XOR

Created with MrDocs