Template:cpp/container/upper bound

@1,2@ Returns an iterator pointing to the first element that is greater than.

@3,4@ Returns an iterator pointing to the first element that compares greater to the value.

Return value
Iterator pointing to the first element that is greater than. If no such element is found, past-the-end (see end) iterator is returned.

Complexity
Logarithmic in the size of the container.