BloombergLP::bdlc::PackedIntArray::insert

insert overloads

Synopses

Declared in <bdlc_packedintarray.h>

Insert into this array, at the specified dst, an element having the specified value, shifting any elements originally at or above dst up by one. Return an iterator to the newly inserted element.

PackedIntArray<TYPE>::const_iterator
insert(
    const_iterator dst,
    TYPE value);
» more...

Insert into this array, at the specified dstIndex, an element having the specified value, shifting any elements originally at or above dstIndex up by one. The behavior is undefined unless dstIndex <= length().

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

Insert into this array, at the specified dstIndex, the sequence of values represented by the specified srcArray, shifting any elements originally at or above dstIndex up by srcArray.length() indices higher. The behavior is undefined unless dstIndex <= length(). Note that if this array and srcArray are the same, the behavior is as if a copy of srcArray were passed.

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

Insert into this array, at the specified dstIndex, the specified numElements values in the specified srcArray starting at the specified srcIndex. Elements greater than or equal to dstIndex are shifted up numElements positions. The behavior is undefined unless dstIndex <= length() and srcIndex + numElements <= srcArray.length(). Note that if this array and srcArray are the same, the behavior is as if a copy of srcArray were passed.

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