5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MIN_ELEMENT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MIN_ELEMENT_HPP_
8#include "arene/base/algorithm/detail/relative_find.hpp"
9#include "arene/base/algorithm/detail/traits.hpp"
11#include "arene/base/functional/detail/operator_less.hpp"
56 class ForwardIterator,
63constexpr auto min_element(ForwardIterator first, ForwardIterator last, Compare comp)
noexcept(
64 noexcept(arene::base::algorithm_detail::relative_find(
101 class ForwardIterator,
105 decltype(arene::base::functional_detail::operator_less)&,
106 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>,
107 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>>>> =
nullptr>
108constexpr auto min_element(ForwardIterator first, ForwardIterator last)
noexcept(
110) -> ForwardIterator {
A backport of the C++20 std::identity function object. It returns its input unchanged.
Definition identity.hpp:21
Public export header for the constraints subpackage.
constexpr bool is_compare_v
determines if a type satisfies the Compare named requirement
constexpr bool is_predicate_v
backport for the C++20 predicate concept
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 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 min_element(ForwardIterator first, ForwardIterator last, Compare comp) noexcept(noexcept(arene::base::algorithm_detail::relative_find(std::move(first), std::move(last), std::move(comp), std::declval< arene::base::identity const & >()))) -> ForwardIterator
returns the smallest element in a range
Definition min_element.hpp:63