[#BloombergLP-bdlc-CompactedArray-insert-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::insert :relfileprefix: ../../../ :mrdocs: Insert `value` into this array at the specified `dstIndex`. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void insert( std::size_t dstIndex, TYPE const& value); ---- == Description 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()`. == Parameters [cols="1,4"] |=== | Name| Description | *dstIndex* | index at which to insert | *value* | value of the inserted element |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#