5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TUPLE_TUPLE_CAT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TUPLE_TUPLE_CAT_HPP_
16#include "arene/base/stdlib_choice/cstddef.hpp"
17#include "arene/base/stdlib_choice/declval.hpp"
18#include "arene/base/stdlib_choice/enable_if.hpp"
19#include "arene/base/stdlib_choice/forward.hpp"
20#include "arene/base/stdlib_choice/forward_as_tuple.hpp"
21#include "arene/base/stdlib_choice/integer_sequence.hpp"
22#include "arene/base/stdlib_choice/remove_cv.hpp"
23#include "arene/base/stdlib_choice/remove_reference.hpp"
24#include "arene/base/stdlib_choice/tuple.hpp"
25#include "arene/base/stdlib_choice/tuple_size.hpp"
26#include "arene/base/tuple/detail/as_type_list.hpp"
27#include "arene/base/tuple/detail/get.hpp"
38namespace tuple_cat_detail {
44class tuple_index_seq_impl;
74class element_index_seq_impl {
87using element_index_seq_t =
typename element_index_seq_impl<Sizes...>::type;
147 static constexpr auto
149 noexcept(Result{tuple_detail::get<ElementIndices>(tuple_detail::get<TupleIndices>(
std::declval<Bundle>()))...})
151 return Result{tuple_detail::get<ElementIndices>(tuple_detail::get<TupleIndices>(
std::forward<Bundle>(bundle)))...};
183 class Result = tuple_cat_result_t<remove_cvref_t<Ts>...>,
184 class TupleIndices = tuple_index_seq_t<std::tuple_size<remove_cvref_t<Ts>>::value...>,
185 class ElementIndices = element_index_seq_t<std::tuple_size<remove_cvref_t<Ts>>::value...>>
186 constexpr auto operator()(Ts&&... args)
const
187 noexcept(
noexcept(impl<Result>(
std::declval<std::tuple<Ts&&...>>(), TupleIndices{}, ElementIndices{})))
#define ARENE_CPP14_INLINE_VARIABLE(type, name)
Emulates C++17's inline variable declarations for function objects.
Definition cpp14_inline.hpp:69
Provides the is_tuple_like_v<T> and is_pair_like_v<T> traits.
typename concat< Ln... >::type concat_t
collapse L0<T...>, .. Ln<U...> into TypeList<T..., .., U...>
Definition concat.hpp:107
Definition accumulate.hpp:37
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
repeat_type_t< Count, make_index_sequence_repeat_n_detail::to_index_sequence, std::integral_constant< std::size_t, Value > > make_index_sequence_repeat_n
An std::index_sequence whose elements are Count copies of Value.
Definition make_index_sequence_repeat_n.hpp:32
typename integer_sequence_ops_detail::integer_sequence_cat_impl< Sequences... >::type integer_sequence_cat
Produces a single std::integer_sequence which is the concatenation of multiple std::integer_sequence.
Definition integer_sequence_ops.hpp:74
Definition accumulate.hpp:36
constexpr auto forward_as_tuple(ArgTs &&... args) noexcept -> tuple< ArgTs &&... >
construct a tuple of references to the provided arguments suitable for forwarding as arguments to a f...
Definition forward_as_tuple.hpp:31
make_integer_sequence< size_t, Size > make_index_sequence
A helper alias template for make_integer_sequence<size_t, Size>
Definition integer_sequence.hpp:224
integer_sequence< size_t, Ints... > index_sequence
A helper alias template for integer_sequence<size_t, Ints>
Definition integer_sequence.hpp:218
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24
Provides the all_of_v<bool...> trait.