Insert value at dstIndex, shifting later elements up by one.

Synopsis

Declared in <bdlc_packedintarray.h>

void
insert(
    std::size_t dstIndex,
    ElementType value);

Description

Insert into this array, at the specified dstIndex, an element of specified value, shifting any elements originally at or above dstIndex up by one. The behavior is undefined unless dstIndex <= length().

Parameters

Name

Description

dstIndex

index at which to insert

value

element value to insert

Created with MrDocs