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
8
namespace
etl::meta
{
9
10
template
<
typename
... Ts>
11
struct
head
;
12
13
template
<
typename
Head,
typename
... Tail>
14
struct
head
<
list
<Head, Tail...>> {
15
using
type
= Head;
16
};
17
18
template
<
typename
List>
19
using
head_t
=
typename
head<List>::type
;
20
21
}
// namespace etl::meta
22
23
#endif
// TETL_META_HEAD_HPP
list.hpp
etl::meta
Definition
at.hpp:9
etl::meta::head_t
typename head< List >::type head_t
Definition
head.hpp:19
etl::meta::head< list< Head, Tail... > >::type
Head type
Definition
head.hpp:15
etl::meta::head
Definition
head.hpp:11
etl::meta::list
Definition
list.hpp:10
include
etl
_meta
head.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0