[#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 `&lt;bdlc&lowbar;packedintarray&period;h&gt;`

Replace the element at `dstIndex` with `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0e.adoc[replace](
    std::size&lowbar;t dstIndex,
    xref:BloombergLP/bdlc/PackedIntArrayImp-0a/ElementType.adoc[ElementType] value);
----

[.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0e.adoc[_» more&period;&period;&period;_]#

Replace `numElements` at `dstIndex` with values from `srcArray`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0b.adoc[replace](
    std::size&lowbar;t dstIndex,
    xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp] const& srcArray,
    std::size&lowbar;t srcIndex,
    std::size&lowbar;t numElements);
----

[.small]#xref:BloombergLP/bdlc/PackedIntArrayImp-0a/replace-0b.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dstIndex*
| index of the element to replace
| *value*
| new element value
| *srcArray*
| source array providing replacement values
| *srcIndex*
| first index in `srcArray` to copy from
| *numElements*
| number of elements to replace
|===


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