[#BloombergLP-bdlc-PackedIntArrayImp-0a-replace-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]::replace :relfileprefix: ../../../ :mrdocs: `replace` overloads == Synopses Declared in `<bdlc_packedintarray.h>` Change the value of the element at the specified `dstIndex` in this array to the specified `value`. The behavior is undefined unless `dstIndex < length()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0e.adoc[replace]( std::size_t dstIndex, xref:BloombergLP/bdlc/PackedIntArrayImp-0a/ElementType.adoc[ElementType] value); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0e.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0b.adoc[replace]( std::size_t dstIndex, xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp] const& srcArray, std::size_t srcIndex, std::size_t numElements); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#