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

Synopsis

Declared in <bdlc_compactedarray.h>

void
replace(
    std::size_t dstIndex,
    TYPE const& value);

Parameters

Name

Description

dstIndex

index of the element to replace

value

new value for the element

Created with MrDocs