BloombergLP::bdlc::PackedIntArrayImp::replace

Replace the element at dstIndex with value.

Synopsis

Declared in <bdlc_packedintarray.h>

void
replace(
    std::size_t dstIndex,
    ElementType value);

Description

Change the value of the element at the specified dstIndex in this array to the specified value. The behavior is undefined unless dstIndex < length().

Parameters

NameDescription
dstIndexindex of the element to replace
valuenew element value