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