[#BloombergLP-bdlc-CompactedArray-replace-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::replace :relfileprefix: ../../../ :mrdocs: Change the value of the element at the specified `dstIndex` in this array to the specified `value`. The behavior is undefined unless `dstIndex < length()`. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void replace( std::size_t dstIndex, TYPE const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#