capydi
Loading...
Searching...
No Matches
Prepend.hpp
Go to the documentation of this file.
1#ifndef PREPEND_HPP_
2#define PREPEND_HPP_
3
5
6namespace capy::meta::legacy
7{
8
9template<typename Element, typename Pack>
10struct Prepend;
11
12template<typename Element, typename... PackElements>
13struct Prepend<Element, Pack<PackElements...>>
14{
15 using type = Pack<Element, PackElements...>;
16};
17
18template<typename Element, typename Pack>
20
21}
22
23#endif // !PREPEND_HPP_
Compile-time type pack utilities and metaprogramming foundations.
Definition Append.hpp:7
typename Prepend< Element, Pack >::type prepend_t
Definition Prepend.hpp:19
A compile-time heterogeneous type list.
Definition Pack.hpp:70
Pack< Element, PackElements... > type
Definition Prepend.hpp:15
Definition Prepend.hpp:10