BloombergLP::bdlc::FlatHashSet::erase

Remove the elements in the half-open iterator range.

Synopsis

Declared in <bdlc_flathashset.h>

FlatHashSet<KEY, HASH, EQUAL>::const_iterator
erase(
    const_iterator first,
    const_iterator last);

Description

Remove from this set the elements starting at the specified first position up to, but not including, the specified last position, and return last. This method invalidates all iterators and references to the removed elements. The behavior is undefined unless first and last are valid iterators on this set, and the first position is at or before the last position in the iteration sequence provided by this container.

Return Value

iterator equal to last

Parameters

NameDescription
firstbeginning of the range to erase
lastend of the range to erase (exclusive)