Encapsulates a list of types. More...
#include <ugmisc/typelist.hpp>
Public Types | |
| template<template< class... > class Templ> | |
| using | apply_t = Templ<T...> |
| Feed the types into a template as template arguments. | |
| template<template< class... > class Templ> | |
| using | apply = apply_t<Templ> |
| template<template< class... > class Templ> | |
| using | call_t |
| template<template< class... > class Templ> | |
| using | call = call_t<Templ> |
| template<class... U> | |
| using | prepend_t = type_list<U..., T...> |
| template<class... U> | |
| using | prepend = prepend_t<U...> |
| template<class... U> | |
| using | append_t = type_list<T..., U...> |
| template<class... U> | |
| using | append = append_t<U...> |
| template<std::size_t From, std::size_t To> | |
| using | sublist_t = type_list_sublist<From, To, type_list> |
| template<std::ptrdiff_t Base, std::ptrdiff_t Stride, std::size_t Count> | |
| using | stride_t = type_list_stride<Base, Stride, Count, type_list> |
| template<std::ptrdiff_t Base, std::ptrdiff_t Stride, std::size_t Count> | |
| using | stride = stride_t<Base, Stride, Count> |
Static Public Attributes | |
| static constexpr std::size_t | size = sizeof...(T) |
| Number of types in the list. | |
Encapsulates a list of types.
| using ugmisc::type_list< T >::append_t = type_list<T..., U...> |
A type_list with the type arguments appended.
| using ugmisc::type_list< T >::apply = apply_t<Templ> |
| using ugmisc::type_list< T >::call = call_t<Templ> |
| using ugmisc::type_list< T >::call_t |
Like apply, but treats the template as a metafunction whose return value is a type member called type.
| using ugmisc::type_list< T >::prepend_t = type_list<U..., T...> |
A type_list with the type arguments prepended.
| using ugmisc::type_list< T >::stride = stride_t<Base, Stride, Count> |
| using ugmisc::type_list< T >::stride_t = type_list_stride<Base, Stride, Count, type_list> |
| using ugmisc::type_list< T >::sublist_t = type_list_sublist<From, To, type_list> |
A sublist of this list, including each type element from and including the From index up to but not including the To index.
| From | The first type element index. |
| To | The end index. |