BloombergLP::bdlc::CompactedArray::insert

Insert value into this array at the position of dst.

Synopsis

Declared in <bdlc_compactedarray.h>

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

Description

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 index position. Return an iterator to the newly inserted element. The behavior is undefined unless dst is an iterator over this array.

Return Value

iterator to the newly inserted element

Parameters

NameDescription
dstiterator position at which to insert
valuevalue of the inserted element