replace overloads

Synopses

Declared in <bdlc_compactedarray.h>

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

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

Replace elements at dstIndex with elements from srcArray.

void
replace(
    std::size_t dstIndex,
    CompactedArray const& srcArray,
    std::size_t srcIndex,
    std::size_t numElements);

Parameters

Name

Description

dstIndex

index of the element to replace

value

new value for the element

srcArray

array providing replacement values

srcIndex

first index in srcArray to copy from

numElements

number of elements to replace

Created with MrDocs