4#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_LIST_TAKE_HPP_
5#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_LIST_TAKE_HPP_
8#include "arene/base/stdlib_choice/cstddef.hpp"
9#include "arene/base/stdlib_choice/declval.hpp"
10#include "arene/base/stdlib_choice/enable_if.hpp"
11#include "arene/base/stdlib_choice/integer_sequence.hpp"
18namespace take_detail {
27template <
std::size_t... Is,
template <
class...>
class List,
class... Ts>
36template <
class List, std::
size_t Count,
class = constra
ints<>>
45template <
template <
class...>
class List,
class... Ts,
std::size_t Count>
58template <
template <
class...>
class List,
class... Ts,
std::size_t Count>
62 using type = List<Ts...>;
79template <
class List, std::
size_t Count>
80using take = take_detail::take<List, Count>;
86template <
class List, std::
size_t Count>
Definition apply_all.hpp:14
take_detail::take< List, Count > take
takes types from the front of a type list
Definition take.hpp:80
typename take< List, Count >::type take_t
takes types from the front of a type list
Definition take.hpp:87
typename at< L0, Index >::type at_t
Get the n-th element from a type list.
Definition at.hpp:113
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
Definition accumulate.hpp:36
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
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,...