BloombergLP::bdlb::AlgorithmWorkaroundUtil::upperBound

upperBound overloads

Synopses

Declared in <bdlb_algorithmworkaroundutil.h>

Return an iterator to the first element greater than value.

template<
    class FORWARD_IT,
    class TYPE>
static
FORWARD_IT
upperBound(
    FORWARD_IT first,
    FORWARD_IT last,
    TYPE const& value);
» more...

Return an iterator to the first element greater than value, using comp.

template<
    class FORWARD_IT,
    class TYPE,
    class COMPARE>
static
FORWARD_IT
upperBound(
    FORWARD_IT first,
    FORWARD_IT last,
    TYPE const& value,
    COMPARE comp);
» more...

Return Value

iterator to the first element greater than value, or last if none

Parameters

NameDescription
firstbeginning of the sorted range to search
lastend of the sorted range to search
valuevalue to compare against elements in the range
compcomparison functor inducing a strict weak ordering