andEqual overloads

Synopses

Declared in <bdlc_bitarray.h>

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

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

Bitwise AND a bit range from srcArray into this array.

void
andEqual(
    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 AND at index

dstIndex

starting index in this array

srcArray

array providing the source bits

srcIndex

starting index in srcArray

numBits

number of bits to AND

Created with MrDocs