BloombergLP::bdlc::BitArray::assign

assign overloads

Synopses

Declared in <bdlc_bitarray.h>

Set the value at the specified index in this array to the specified value. The behavior is undefined unless index < length().

void
assign(
    std::size_t index,
    bool value);
» more...

Set a range of bits in this array to the specified value.

void
assign(
    std::size_t index,
    bool value,
    std::size_t numBits);
» more...

Replace a bit range in this array with bits from srcArray.

void
assign(
    std::size_t dstIndex,
    BitArray const& srcArray,
    std::size_t srcIndex,
    std::size_t numBits);
» more...

Parameters

NameDescription
indexbit position to set
valuebit value to store at index
numBitsnumber of bits to set
dstIndexstarting index in this array
srcArrayarray providing the replacement bits
srcIndexstarting index in srcArray