Return an iterator to the first element not less than value, using comp.
Synopsis
Declared in <bdlb_algorithmworkaroundutil.h>
template<
class FORWARD_IT,
class TYPE,
class COMPARE>
static
FORWARD_IT
lowerBound(
FORWARD_IT first,
FORWARD_IT last,
TYPE const& value,
COMPARE comp);
Description
Returns an iterator pointing to the first element in the range starting at the specified first iterator and ending immediately before the specified last iterator, that is greater than or equal to the specified value as determined by the specified comp, or last if no such element is found. This method works around a deficiency in the STLPort standard library that prevents using lower_bound to search for a value of a different type than that held in the range being searched (even if an appropriate operator< is defined). See DRQS 139734639.
Return Value
iterator to the first element not less than value, or last if none
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 |
comp |
comparison functor inducing a strict weak ordering |
Created with MrDocs