upperBound overloads
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...
iterator to the first element greater than value, or last if none
| 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 |