BloombergLP::bdlb::AlgorithmWorkaroundUtil::lowerBound

lowerBound overloads

Synopses

Declared in <bdlb_algorithmworkaroundutil.h>

Return an iterator to the first element not less than value.

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

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

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

Return Value

iterator to the first element not less 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