BloombergLP::bdlc::CompactedArray::insert

insert overloads

Synopses

Declared in <bdlc_compactedarray.h>

Insert value into this array at the position of dst.

CompactedArray<TYPE>::const_iterator
insert(
    const_iterator dst,
    TYPE const& value);
» more...

Insert the elements of srcArray into this array at dstIndex.

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

Insert value into this array at the specified dstIndex.

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

Insert elements from srcArray into this array at dstIndex.

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

Return Value

iterator to the newly inserted element

Parameters

NameDescription
dstiterator position at which to insert
valuevalue of the inserted element
dstIndexindex at which to insert
srcArrayarray whose elements are inserted
srcIndexfirst index in srcArray to copy from
numElementsnumber of elements to insert