5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MAX_ELEMENT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_MAX_ELEMENT_HPP_
8#include "arene/base/algorithm/detail/traits.hpp"
11#include "arene/base/functional/detail/operator_less.hpp"
55 class ForwardIterator,
62constexpr auto max_element(ForwardIterator first, ForwardIterator last, Compare comp)
noexcept(
95 class ForwardIterator,
99 decltype(arene::base::functional_detail::operator_less)&,
100 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>>>> =
nullptr>
101constexpr auto max_element(ForwardIterator first, ForwardIterator last)
noexcept(
103) -> ForwardIterator {
Public export header for the constraints subpackage.
constexpr bool is_compare_v
determines if a type satisfies the Compare 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 disable_constexpr_in_cpp14() noexcept -> void
function used to disable constexpr in C++14 but allow for it in C++17
Definition internal_disable_constexpr_in_cpp14.hpp:23
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
constexpr auto max_element(ForwardIterator first, ForwardIterator last, Compare comp) noexcept(noexcept(arene::base::max_element(std::move(first), std::move(last), std::move(comp)))) -> ForwardIterator
returns the largest element in a range
Definition max_element.hpp:62