[#BloombergLP-bdlc-PackedIntArray-08-replace-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-08.adoc[PackedIntArray&lt;int&gt;]::replace
:relfileprefix: ../../../
:mrdocs:

Change the value of the element at the specified `dstIndex` in this array to the specified `value`&period; The behavior is undefined unless `dstIndex &lt; length()`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;packedintarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
replace(
    std::size&lowbar;t dstIndex,
    int value);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
