insert overloads
Synopses
Declared in <bdlc_bitarray.h>
Insert into this array at the specified dstIndex the specified value. All values with indices at or above dstIndex in this array are shifted up by one bit position. The behavior is undefined unless dstIndex <= length().
void
insert(
std::size_t dstIndex,
bool value);
Insert into this array, beginning at the specified dstIndex, the values from the specified srcArray. All values with indices at or above dstIndex in this array are shifted up by srcArray.length() bit positions. The behavior is undefined unless dstIndex <= length().
Insert into this array at the specified dstIndex the specified numBits having the specified value. All values with indices at or above dstIndex in this array are shifted up by numBits bit positions. The behavior is undefined unless dstIndex <= length().
void
insert(
std::size_t dstIndex,
bool value,
std::size_t numBits);
Insert into this array, beginning at the specified dstIndex, the specified numBits from the specified srcArray beginning at the specified srcIndex. All values with initial indices at or above dstIndex are shifted up by numBits positions. The behavior is undefined unless dstIndex <= length() and srcIndex + numBits <= srcArray.length().
Created with MrDocs