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
11template <typename T, typename List>
12struct push_front;
13
14template <typename T, typename... Ts>
15struct push_front<T, list<Ts...>> {
16 using type = list<T, Ts...>;
17};
18
19template <typename T, typename List>
20using push_front_t = typename push_front<T, List>::type;
21
22} // namespace etl::mpl
23
24#endif // TETL_MPL_PUSH_FRONT_HPP
Definition at.hpp:10
Definition adjacent_find.hpp:9
Definition list.hpp:11