Replace the element at dstIndex with value.

Synopsis

Declared in <bdlc_packedintarray.h>

void
replace(
    std::size_t dstIndex,
    TYPE 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

Name

Description

dstIndex

index of the element to replace

value

new element value

Created with MrDocs