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