absl::c_upper_bound

Container-based version of the <algorithm> std::upper_bound() function to return an iterator pointing to the first element in a sorted container which is greater than value.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename Sequence,
    typename T>
constexpr
/* implementation-defined */
c_upper_bound(
    Sequence& sequence,
    T const& value);

Return Value

An iterator to the first element greater than value.

Parameters

NameDescription
sequenceThe sorted container to search.
valueThe value to compare against.