5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_IS_ACCESSOR_POLICY_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_IS_ACCESSOR_POLICY_HPP_
9#include "arene/base/stdlib_choice/cstddef.hpp"
10#include "arene/base/stdlib_choice/declval.hpp"
11#include "arene/base/stdlib_choice/enable_if.hpp"
12#include "arene/base/stdlib_choice/is_abstract.hpp"
13#include "arene/base/stdlib_choice/is_constructible.hpp"
14#include "arene/base/stdlib_choice/is_move_assignable.hpp"
15#include "arene/base/stdlib_choice/is_move_constructible.hpp"
16#include "arene/base/stdlib_choice/is_object.hpp"
17#include "arene/base/stdlib_choice/is_same.hpp"
24namespace is_accessor_policy_detail {
28template <
typename AccessorPolicy,
typename = arene::base::constra
ints<>>
29extern constexpr bool has_typedefs_v =
false;
33template <
typename AccessorPolicy>
34extern constexpr bool has_typedefs_v<
37 typename AccessorPolicy::element_type,
38 typename AccessorPolicy::data_handle_type,
39 typename AccessorPolicy::reference,
40 typename AccessorPolicy::offset_policy,
41 typename AccessorPolicy::offset_policy::element_type>> =
53template <
typename AccessorPolicy>
59template <
typename AccessorPolicy>
65template <
typename AccessorPolicy,
typename = arene::base::constra
ints<>>
66extern constexpr bool has_typedefs_and_functions_v =
false;
70template <
typename AccessorPolicy>
71extern constexpr bool has_typedefs_and_functions_v<
75 access_t<AccessorPolicy>,
76 offset_t<AccessorPolicy>>> =
77 std::is_same<access_t<AccessorPolicy>,
typename AccessorPolicy::reference>::value &&
78 std::is_same<offset_t<AccessorPolicy>,
typename AccessorPolicy::offset_policy::data_handle_type>::value;
96template <
class AccessorPolicy>
static constexpr value_type value
Definition integral_constant.hpp:34
Definition accumulate.hpp:37
constexpr bool is_nothrow_swappable_v
Trait query indicating if a type can be noexcept-swapped.
constexpr bool is_accessor_policy_v
Check if a type is a valid accessor policy.
constexpr bool is_copyable_v
Backport for the C++20 copyable 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
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
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,...