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);

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);

Return Value

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

Parameters

Name

Description

Range

Sorted range to search.

Value

Value to bound.

C

Comparison function object.

Created with MrDocs