[#BloombergLP-bdlc-CompactedArray-remove-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::remove :relfileprefix: ../../../ :mrdocs: Remove from this array the element at the specified `dstIndex`. Each element having an index greater than `dstIndex` before the removal is shifted down by one index position. The behavior is undefined unless `dstIndex < length()`. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void remove(std::size_t dstIndex); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#