[#BloombergLP-bdlc-PackedIntArray-0b-replace-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::replace :relfileprefix: ../../../ :mrdocs: Change the values of the specified `numElements` elements in this array beginning at the specified `dstIndex` to those of the `numElements` values in the specified `srcArray` beginning at the specified `srcIndex`. The behavior is undefined unless `srcIndex + numElements <= srcArray.length()` and `dstIndex + numElements <= length()`. Note that if this array and `srcArray` are the same, the behavior is as if a copy of `srcArray` were passed. == Synopsis Declared in `<bdlc_packedintarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void replace( std::size_t dstIndex, xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray] const& srcArray, std::size_t srcIndex, std::size_t numElements); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#