set::equal_range

pair<const_iterator, const_iterator>
    equal_range(const Key& key) const;

The member function returns a pair of iterators x such that x.first == lower_bound(key) and x.second == upper_bound(key).