equal_range overloads
Synopses
Declared in <bdlc_flathashtable.h>
Return a pair of iterators providing modifiable access to the sequence of objects in this flat hash table having the specified key, where the first iterator is positioned at the start of the sequence, and the second is positioned one past the end of the sequence. If this table contains no object having key, then the two returned iterators will have the same value, end(). Note that since each key in a flat hash table is unique, the returned range contains at most one element.
Return a pair of iterators providing non‐modifiable access to the sequence of objects in this table having the specified key, where the first iterator is positioned at the start of the sequence, and the second is positioned one past the end of the sequence. If this table contains no objects having key, then the two returned iterators will have the same value, end(). Note that since a table maintains unique keys, the range will contain at most one entry.
Return a pair of iterators providing non‐modifiable access to the sequence of objects in this table having a key equivalent to the specified key, where the first iterator is positioned at the start of the sequence, and the second is positioned one past the end of the sequence. If this table contains no objects having a key equivalent to the specified key, then the two returned iterators will have the same value, end(). Note that since a table maintains unique keys, the range will contain at most one entry.
template<class LOOKUP_KEY>
bsl::pair<iterator, iterator>
equal_range(LOOKUP_KEY const& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
&& BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
Return a pair of iterators providing non‐modifiable access to the sequence of objects in this table having a key equivalent to the specified key, where the first iterator is positioned at the start of the sequence, and the second is positioned one past the end of the sequence. If this table contains no objects having a key equivalent to the specified key, then the two returned iterators will have the same value, end(). Note that since a table maintains unique keys, the range will contain at most one entry.
template<class LOOKUP_KEY>
bsl::pair<const_iterator, const_iterator>
equal_range(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
&& BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
Created with MrDocs