BloombergLP::bdlc::BitArray::insert

insert overloads

Synopses

Declared in <bdlc_bitarray.h>

Insert a single bit value at dstIndex in this array.

void
insert(
    std::size_t dstIndex,
    bool value);
» more...

Insert all bits from srcArray at dstIndex in this array.

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

Insert repeated bit values at dstIndex in this array.

void
insert(
    std::size_t dstIndex,
    bool value,
    std::size_t numBits);
» more...

Insert a bit range from srcArray at dstIndex in this array.

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

Parameters

NameDescription
dstIndexindex at which to insert
valuebit value to insert
srcArrayarray whose bits are inserted
numBitsnumber of bits to insert
srcIndexstarting index in srcArray