BloombergLP::bdlc::CompactedArray::remove

remove overloads

Synopses

Declared in <bdlc_compactedarray.h>

Remove from this array the element at the specified dstIndex.

void
remove(std::size_t dstIndex);
» more...

Remove the half-open range [dstFirst, dstLast)] from this array.

CompactedArray<TYPE>::const_iterator
remove(
    const_iterator dstFirst,
    const_iterator dstLast);
» more...

Remove numElements starting at dstIndex from this array.

void
remove(
    std::size_t dstIndex,
    std::size_t numElements);
» more...

Return Value

iterator to the new position of the former dstLast element, or end() if dstLast == end()

Parameters

NameDescription
dstIndexindex of the element to remove
dstFirstiterator to the first element to remove
dstLastiterator one past the last element to remove
numElementsnumber of elements to remove