remove overloads

Synopses

Declared in <bdlc_compactedarray.h>

Remove from this array the element at the specified dstIndex. Each element having an index greater than dstIndex before the removal is shifted down by one index position. The behavior is undefined unless dstIndex < length().

void
remove(std::size_t dstIndex);

Remove from this array the elements starting at the specified dstFirst iterator up to, but not including, the specified dstLast iterator. Each element at or above dstLast before the removal is shifted down by dstLast ‐ dstFirst index positions. Return an iterator to the new position of the element that was referred to by dstLast, or end() if dstLast == end(). The behavior is undefined unless dstFirst and dstLast are iterators over this array, and dstFirst <= dstLast.

Remove from this array the specified numElements starting at the specified dstIndex. Each element having an index greater than or equal to dstIndex + numElements before the removal is shifted down by numElements index positions. The behavior is undefined unless dstIndex + numElements <= length().

void
remove(
    std::size_t dstIndex,
    std::size_t numElements);

Created with MrDocs