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// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_MPL_TAIL_HPP
5#define TETL_MPL_TAIL_HPP
6
7#include <etl/_mpl/list.hpp>
8
9namespace etl::mpl {
10
11template <typename... Ts>
12struct tail;
13
14template <typename Head, typename... Tail>
15struct tail<list<Head, Tail...>> {
16 using type = list<Tail...>;
17};
18
19template <typename List>
20using tail_t = typename tail<List>::type;
21
22} // namespace etl::mpl
23
24#endif // TETL_MPL_TAIL_HPP
Definition at.hpp:10
Definition adjacent_find.hpp:9
Definition list.hpp:11