insert overloads

Synopses

Declared in <bdlc_compactedarray.h>

Insert value into this array at the position of dst.

Insert the elements of srcArray into this array at dstIndex.

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

Insert value into this array at the specified dstIndex.

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

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);

Return Value

iterator to the newly inserted element

Parameters

Name

Description

dst

iterator position at which to insert

value

value of the inserted element

dstIndex

index at which to insert

srcArray

array whose elements are inserted

srcIndex

first index in srcArray to copy from

numElements

number of elements to insert

Created with MrDocs