The TypeList Class Definitions and Implementation. More...
#include <type_traits>#include <tuple>Go to the source code of this file.
Namespaces | |
| namespace | Spices |
| namespace | Spices::detail |
Typedefs | |
| template<typename TypeList > | |
| using | Spices::head = typename detail::head<TypeList>::type |
| Get first element of type_list. | |
| template<typename TypeList > | |
| using | Spices::tail = typename detail::tail<TypeList>::type |
| Get elements of type_list except the first. | |
| template<typename TypeList , size_t N> | |
| using | Spices::nth = typename detail::nth<TypeList, N>::type |
| Get element of type_list by specific index. | |
| template<typename TypeList , template< typename > typename F> | |
| using | Spices::map = typename detail::map<TypeList, F>::type |
| Replace type with a new type. | |
| template<typename T , typename TypeList > | |
| using | Spices::cons = typename detail::cons<T, TypeList>::type |
| Push a element to elements first. | |
| template<typename TypeList1 , typename TypeList2 > | |
| using | Spices::concat = typename detail::concat<TypeList1, TypeList2>::type |
| Combine two type_list. | |
| template<typename TypeList > | |
| using | Spices::init = typename detail::init<TypeList>::type |
| Keep elements except last. | |
| template<typename TypeList , template< typename > typename F> | |
| using | Spices::filter = typename detail::filter<TypeList, F>::type |
| Keep elements except filtered. | |
Variables | |
| template<typename TypeList , template< typename > typename F> | |
| constexpr int | Spices::count = detail::count<TypeList, F, TypeList::size - 1>::value |
| Calculate count that meets requirement. | |
The TypeList Class Definitions and Implementation.
Definition in file TypeList.h.