c_upper_bound overloads
Synopses
Declared in <absl/algorithm/container.h>
Container‐based version of the <algorithm> std::upper_bound() function to return an iterator pointing to the first element in a sorted container which is greater than value.
template<
typename Sequence,
typename T>
constexpr
/* implementation-defined */
c_upper_bound(
Sequence& sequence,
T const& value);
Overload of c_upper_bound() for performing a comp comparison other than the default operator<.
template<
typename Sequence,
typename T,
typename LessThan>
constexpr
/* implementation-defined */
c_upper_bound(
Sequence& sequence,
T const& value,
LessThan&& comp);
Return Value
-
An iterator to the first element greater than
value. -
An iterator to the first element ordered after
value.
Parameters
Name |
Description |
sequence |
The sorted container to search. |
value |
The value to compare against. |
comp |
The comparison used to order the elements. |
Created with MrDocs