bsl::unordered_set::equal_range

Return the range of elements equivalent to key.

Description

Return a pair of iterators providing non-modifiable access to the sequence of value_type objects in this unordered set that are equivalent to the specified key, where the first iterator is positioned at the start of the sequence and the second iterator is positioned one past the end of the sequence. If this unordered set contains no value_type objects equivalent to key, then the two returned iterators will have the same value. Note that since an unordered set maintains unique keys, the range will contain at most one element.

Return Value

pair of const iterators delimiting the equal-key range

Parameters

NameDescription
keykey value to look up