5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_DENOTES_RANGE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_DENOTES_RANGE_HPP_
12#include "arene/base/stdlib_choice/declval.hpp"
13#include "arene/base/stdlib_choice/enable_if.hpp"
14#include "arene/base/stdlib_choice/is_copy_constructible.hpp"
15#include "arene/base/stdlib_choice/remove_cv.hpp"
16#include "arene/base/stdlib_choice/remove_reference.hpp"
28template <
typename Iterator,
typename Sentinel = Iterator>
32 std::is_copy_constructible<remove_cvref_t<Sentinel>>::value;
34namespace denotes_range_detail {
39template <
typename Iterator,
typename Sentinel,
typename = constra
ints<>>
40extern constexpr bool denotes_nothrow_iterable_range_v =
false;
46template <
typename Iterator,
typename Sentinel>
47extern constexpr bool denotes_nothrow_iterable_range_v<
65template <
typename Iterator,
typename Sentinel = Iterator>
67 denotes_range_detail::denotes_nothrow_iterable_range_v<Iterator, Sentinel>;
Definition accumulate.hpp:37
constexpr bool denotes_nothrow_iterable_range_v
Check if an iterator/sentinel pair form an iterable range that can be iterated without throwing.
constexpr bool is_iterator_v
Definition iterator_category_traits.hpp:375
constexpr bool is_inequality_comparable_v
constexpr bool denotes_range_v
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
remove_cv_t< remove_reference_t< T > > remove_cvref_t
Backport of std::remove_cvref_t.
Definition remove_cvref.hpp:35
Definition accumulate.hpp:36
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...