tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
tail.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_META_TAIL_HPP
4#define TETL_META_TAIL_HPP
5
6#include <etl/_meta/list.hpp>
7
8namespace etl::meta {
9
10template <typename... Ts>
11struct tail;
12
13template <typename Head, typename... Tail>
14struct tail<list<Head, Tail...>> {
15 using type = list<Tail...>;
16};
17
18template <typename List>
19using tail_t = typename tail<List>::type;
20
21} // namespace etl::meta
22
23#endif // TETL_META_TAIL_HPP
Definition at.hpp:9
typename tail< List >::type tail_t
Definition tail.hpp:19
Definition list.hpp:10
list< Tail... > type
Definition tail.hpp:15
Definition tail.hpp:11