Return the half‐open range of elements equivalent to key.
Synopsis
Declared in <bslstl_multimap.h>
bsl::pair<iterator, iterator>
equal_range(key_type const& key);
Description
Return a pair of iterators providing modifiable access to the sequence of value_type objects in this multimap whose keys are 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. The first returned iterator will be lower_bound(key), the second returned iterator will be upper_bound(key), and, if this multimap contains no value_type object with an equivalent key, then the two returned iterators will have the same value.
Note: implemented inline due to Sun CC compilation error.
Return Value
pair of iterators delimiting the equivalent range
Parameters
Name |
Description |
key |
key value to look up |
Created with MrDocs