tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
push_front.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_PUSH_FRONT_HPP
5#define TETL_MPL_PUSH_FRONT_HPP
6
7#include <etl/_mpl/list.hpp>
8
9namespace etl::mpl {
10
11/// \ingroup mpl
12/// @{
13
14template <typename T, typename List>
15struct push_front;
16
17template <typename T, typename... Ts>
18struct push_front<T, list<Ts...>> {
19 using type = list<T, Ts...>;
20};
21
22template <typename T, typename List>
23using push_front_t = typename push_front<T, List>::type;
24
25/// @}
26
27} // namespace etl::mpl
28
29#endif // TETL_MPL_PUSH_FRONT_HPP
Definition at.hpp:10
Definition adjacent_find.hpp:9
Definition list.hpp:11