Insert value into this array at the specified dstIndex.
Declared in <bdlc_compactedarray.h>
void
insert(
std::size_t dstIndex,
TYPE const& value);
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 index position. The behavior is undefined unless dstIndex <= length().
| Name | Description |
|---|---|
| dstIndex | index at which to insert |
| value | value of the inserted element |