BloombergLP::bdlc::CompactedArray::append

Append elements from srcArray starting at srcIndex to this array.

Synopsis

Declared in <bdlc_compactedarray.h>

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

Description

Append to this array the specified numElements starting at the specified srcIndex in the specified srcArray. The behavior is undefined unless srcIndex + numElements <= srcArray.length(). Note that if this array and srcArray are the same, the behavior is as if a copy of srcArray were passed.

Parameters

NameDescription
srcArrayarray providing values to append
srcIndexfirst index in srcArray to copy from
numElementsnumber of elements to append