insert overloads
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...
iterator to the newly inserted element
| 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 |