Template:cpp/container/equal range ord

Returns a range containing all elements with the given key in the container. The range is defined by two iterators, one pointing to the first element that is not less than and another pointing to the first element greater than. Alternatively, the first iterator may be obtained with lower_bound, and the second with upper_bound.

@1,2@ Compares the keys to.

@3,4@ Compares the keys to the value.

Return value
std containing a pair of iterators defining the wanted range: the first pointing to the first element that is not less than and the second pointing to the first element greater than.

If there are no elements not less than, past-the-end (see end) iterator is returned as the first element. Similarly if there are no elements greater than, past-the-end iterator is returned as the second element.

Complexity
Logarithmic in the size of the container.