10#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_TUPLE_LIKE_HPP_
11#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_TUPLE_LIKE_HPP_
17#include "arene/base/stdlib_choice/cstddef.hpp"
18#include "arene/base/stdlib_choice/declval.hpp"
19#include "arene/base/stdlib_choice/enable_if.hpp"
20#include "arene/base/stdlib_choice/is_convertible.hpp"
21#include "arene/base/stdlib_choice/remove_cv.hpp"
22#include "arene/base/stdlib_choice/remove_reference.hpp"
23#include "arene/base/stdlib_choice/tuple_element.hpp"
24#include "arene/base/stdlib_choice/tuple_size.hpp"
25#include "arene/base/tuple/detail/get.hpp"
31namespace tuple_like_detail {
36template <
typename T, std::
size_t Idx>
44template <
typename T, std::
size_t Idx,
typename = constra
ints<>>
45extern constexpr bool get_result_is_tuple_element_ref =
false;
50template <
typename T, std::
size_t Idx>
51extern constexpr bool get_result_is_tuple_element_ref<
77template <
typename T,
typename = constra
ints<>>
120 std::tuple_size<remove_cvref_t<T>>::value - 1U>>>> =
true;
124template <
typename T,
typename = constra
ints<>>
Definition accumulate.hpp:37
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
remove_cv_t< remove_reference_t< T > > remove_cvref_t
Backport of std::remove_cvref_t.
Definition remove_cvref.hpp:35
constexpr bool is_tuple_like_v
Type trait to check if a type implements the tuple protocol.
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,...
typename tuple_element< I, T >::type tuple_element_t
obtains the type of the specified element
Definition tuple_element.hpp:68