5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_IS_SUBMDSPAN_SLICE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MDSPAN_IS_SUBMDSPAN_SLICE_HPP_
11#include "arene/base/stdlib_choice/enable_if.hpp"
12#include "arene/base/stdlib_choice/is_convertible.hpp"
13#include "arene/base/stdlib_choice/is_integral.hpp"
14#include "arene/base/stdlib_choice/remove_reference.hpp"
15#include "arene/base/stdlib_choice/tuple_element.hpp"
21namespace is_submdspan_slice_detail {
26template <
class IndexType,
class Slice,
class = constra
ints<>>
27extern constexpr bool is_submdspan_slice_v =
false;
34template <
class IndexType,
class Slice>
35extern constexpr bool is_submdspan_slice_v<
43 "'IndexType' must be an integer."
55template <
class IndexType,
class Slice>
56extern constexpr bool is_submdspan_slice_v<
71template <
class IndexType,
class Slice>
72extern constexpr bool is_submdspan_slice_v<
78 std::is_convertible<std::tuple_element_t<0, std::remove_reference_t<Slice>>, IndexType>::value &&
79 std::is_convertible<std::tuple_element_t<1, std::remove_reference_t<Slice>>, IndexType>::value;
101template <
class IndexType,
class Slice>
102extern constexpr bool is_submdspan_slice_v = is_submdspan_slice_detail::is_submdspan_slice_v<IndexType, Slice>;
static constexpr value_type value
Definition integral_constant.hpp:34
Provides the is_tuple_like_v<T> and is_pair_like_v<T> traits.
Definition accumulate.hpp:37
constexpr bool is_submdspan_slice_v
helper trait to check if a type is a submdspan slice type
constexpr bool is_instantiation_of_v
Definition is_instantiation_of.hpp:16
constexpr bool is_pair_like_v
Type trait to check if a type implements the tuple protocol and has a std::tuple_size of 2.
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