5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ITERATOR_IS_INDIRECTLY_READABLE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ITERATOR_IS_INDIRECTLY_READABLE_HPP_
14#include "arene/base/stdlib_choice/declval.hpp"
15#include "arene/base/stdlib_choice/enable_if.hpp"
16#include "arene/base/stdlib_choice/integral_constant.hpp"
17#include "arene/base/stdlib_choice/is_same.hpp"
26namespace is_indirectly_readable_detail {
30template <
typename Itr>
35template <
typename Itr>
43template <
typename Itr,
typename = constra
ints<>>
44extern constexpr bool is_indirectly_readable{
false};
50template <
typename Itr>
52extern constexpr bool is_indirectly_readable<
83template <
typename Itr>
90template <
typename Itr>
Trait to determine if an iterator is indirectly readable.
Definition is_indirectly_readable.hpp:91
A helper class to represent a compile-time constant with the specified type and value....
Definition integral_constant.hpp:23
Definition accumulate.hpp:37
typename indirectly_readable_traits< remove_cvref_t< Itr > >::value_type iter_value_t
Determins the value type of the given iterator.
Definition iter_value_t.hpp:29
typename iter_rvalue_reference_detail::iter_rvalue_reference_t< Itr >::type iter_rvalue_reference_t
Determins the rvalue-reference type of the given iterator.
Definition iter_rvalue_reference_t.hpp:66
constexpr bool is_indirectly_readable_v
Query trait to determine if an iterator is indirectly readable. A backport of the [std::indirectly_re...
constexpr bool has_common_reference_with_v
Query trait to determine if two types have a common reference. A backport of the [std::common_referen...
typename iter_reference_detail::iter_reference_impl< Itr >::type iter_reference_t
Determins the reference type of the given iterator.
Definition iter_reference_t.hpp:47
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
Definition accumulate.hpp:36
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,...