Insert the elements of srcArray into this array at dstIndex.
Synopsis
Declared in <bdlc_compactedarray.h>
void
insert(
std::size_t dstIndex,
CompactedArray const& srcArray);
Description
Insert into this array, at the specified dstIndex, the elements from the specified srcArray, shifting any elements originally at or above dstIndex up by srcArray.length() index positions. The behavior is undefined unless dstIndex <= length(). Note that if this array and srcArray are the same, the behavior is as if a copy of srcArray were passed.
Parameters
Name |
Description |
dstIndex |
index at which to insert |
srcArray |
array whose elements are inserted |
Created with MrDocs