[#BloombergLP-bdlb-AlgorithmWorkaroundUtil-upperBound-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/AlgorithmWorkaroundUtil.adoc[AlgorithmWorkaroundUtil]::upperBound
:relfileprefix: ../../../
:mrdocs:

`upperBound` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;algorithmworkaroundutil&period;h&gt;`

Return an iterator to the first element greater than `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FORWARD&lowbar;IT,
    class TYPE&gt;
static
FORWARD&lowbar;IT
xref:BloombergLP/bdlb/AlgorithmWorkaroundUtil/upperBound-04.adoc[upperBound](
    FORWARD&lowbar;IT first,
    FORWARD&lowbar;IT last,
    TYPE const& value);
----

[.small]#xref:BloombergLP/bdlb/AlgorithmWorkaroundUtil/upperBound-04.adoc[_» more&period;&period;&period;_]#

Return an iterator to the first element greater than `value`, using `comp`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FORWARD&lowbar;IT,
    class TYPE,
    class COMPARE&gt;
static
FORWARD&lowbar;IT
xref:BloombergLP/bdlb/AlgorithmWorkaroundUtil/upperBound-0e.adoc[upperBound](
    FORWARD&lowbar;IT first,
    FORWARD&lowbar;IT last,
    TYPE const& value,
    COMPARE comp);
----

[.small]#xref:BloombergLP/bdlb/AlgorithmWorkaroundUtil/upperBound-0e.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

[cols="1,4"]
|===
| 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
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
