BloombergLP::bdlc::CompactedArray::replace

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);
» more...

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);
» more...

Parameters

NameDescription
dstIndexindex of the element to replace
valuenew value for the element
srcArrayarray providing replacement values
srcIndexfirst index in srcArray to copy from
numElementsnumber of elements to replace