absl::c_upper_bound

Overload of c_upper_bound() for performing a comp comparison other than the default operator<.

Synopsis

Declared in <absl/algorithm/container.h>

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

Return Value

An iterator to the first element ordered after value.

Parameters

NameDescription
sequenceThe sorted container to search.
valueThe value to compare against.
compThe comparison used to order the elements.