[#BloombergLP-bdlc-CompactedArray-remove-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::remove :relfileprefix: ../../../ :mrdocs: Remove `numElements` starting at `dstIndex` from this array. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void remove( std::size_t dstIndex, std::size_t numElements); ---- == Description Remove from this array the specified `numElements` starting at the specified `dstIndex`. Each element having an index greater than or equal to `dstIndex + numElements` before the removal is shifted down by `numElements` index positions. The behavior is undefined unless `dstIndex + numElements <= length()`. == Parameters [cols="1,4"] |=== | Name| Description | *dstIndex* | first index to remove | *numElements* | number of elements to remove |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#