erase overloads
Synopses
Declared in <bdlc_flathashtable.h>
Remove the entry at the specified position.
Same as the preceding overload for a non‐const iterator.
Remove the entry with the specified key, if present.
std::size_t
erase(KEY const& key);
Remove the entry with the specified key, if present.
template<class LOOKUP_KEY>
std::size_t
erase(LOOKUP_KEY&& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
&& BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
Remove the entries in the half‐open range [first, last)].
Return Value
-
iterator following the erased entry
-
1 if an entry was erased, and 0 otherwise
-
iterator equal to
last
Parameters
Name |
Description |
position |
iterator to the entry to remove |
key |
key of the entry to remove |
first |
beginning of the range to erase |
last |
end of the range to erase |
Created with MrDocs