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

Synopsis

Declared in <bdlc_packedintarrayutil.h>

template<class TYPE>
static
PackedIntArrayConstIterator<TYPE>
lowerBound(
    PackedIntArrayConstIterator<TYPE> first,
    PackedIntArrayConstIterator<TYPE> last,
    TYPE value);

Description

Return an iterator to the first element in the sorted range from the specified first (inclusive) to the specified last (exclusive) that compares greater than or equal to the specified value, and last if no such element exists. The behavior is undefined unless first <= last and the range is sorted.

Return Value

iterator to the first element not less than value, or last if no such element exists

Parameters

Name

Description

first

beginning of the sorted range to search

last

end of the sorted range to search

value

value to compare against elements in the range

Created with MrDocs