5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_UPPER_BOUND_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_UPPER_BOUND_HPP_
8#include "arene/base/algorithm/detail/traits.hpp"
11#include "arene/base/functional/detail/operator_less.hpp"
56 class ForwardIterator,
64 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>>>> =
nullptr>
65constexpr auto upper_bound(ForwardIterator first, ForwardIterator last, T
const&
value, Compare comp)
noexcept(
69 arene::base::bind_front(
std::declval<
decltype(arene::base::not_fn(comp))&>(),
value)
72 auto not_comp = arene::base::not_fn(comp);
101 class ForwardIterator,
106 decltype(arene::base::functional_detail::operator_less)&,
108 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>>>> =
nullptr>
109constexpr auto upper_bound(ForwardIterator first, ForwardIterator last, T
const&
value)
noexcept(
111) -> ForwardIterator {
Public export header for the constraints subpackage.
constexpr bool is_binary_predicate_v
determines if a type satisfies the BinaryPredicate named requirement
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
constexpr auto partition_point(ForwardIterator first, ForwardIterator last, UnaryPred pred) noexcept(std::is_nothrow_move_constructible_v< ForwardIterator > and//std::is_nothrow_move_assignable_v< ForwardIterator >and//noexcept(arene::base::distance(first, last)) and//noexcept(arene::base::next(first)) and//noexcept(pred(*first))) -> ForwardIterator
locates the partition point of a range partitioned with respect to an unary predicate
Definition internal_partition_point.hpp:46
constexpr Type integral_constant< Type, Value >::value
Out-of-line definition for the value constant.
Definition integral_constant.hpp:64
constexpr auto move(T &&value) noexcept -> remove_reference_t< T > &&
Cast a value to an rvalue.
Definition move.hpp:30
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
constexpr auto upper_bound(ForwardIterator first, ForwardIterator last, T const &value, Compare comp) noexcept(noexcept(std::internal::partition_point(std::move(first), std::move(last), arene::base::bind_front(std::declval< & >(), value)))) -> ForwardIterator
returns an iterator to the first element greater than the given value
Definition upper_bound.hpp:65