llvm::upper_bound

upper_bound overloads

Synopses

Declared in <llvm/ADT/STLExtras.h>

Return the first position in sorted Range after which Value could be inserted.

template<
    typename R,
    typename T>
auto
upper_bound(
    R&& Range,
    T&& Value);
» more...

Return the first position in sorted Range after which Value could be inserted using C.

template<
    typename R,
    typename T,
    typename Compare>
auto
upper_bound(
    R&& Range,
    T&& Value,
    Compare C);
» more...

Return Value

Iterator to the first position after which Value could be inserted.

Parameters

NameDescription
RangeSorted range to search.
ValueValue to bound.
CComparison function object.