ugmisc 0.2-76
Miscellaneous C++ header library
Loading...
Searching...
No Matches
ugmisc::type_list< T > Struct Template Reference

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.

Detailed Description

template<class... T>
struct ugmisc::type_list< T >

Encapsulates a list of types.

Member Typedef Documentation

◆ append

template<class... T>
template<class... U>
using ugmisc::type_list< T >::append = append_t<U...>
Deprecated
This is an alias of append_t. The name append will be used for a static constexpr method template in the future.

◆ append_t

template<class... T>
template<class... U>
using ugmisc::type_list< T >::append_t = type_list<T..., U...>

A type_list with the type arguments appended.

◆ apply

template<class... T>
template<template< class... > class Templ>
using ugmisc::type_list< T >::apply = apply_t<Templ>
Deprecated
This is an alias of apply_t. The name apply will be used for a static constexpr method template in the future.

◆ call

template<class... T>
template<template< class... > class Templ>
using ugmisc::type_list< T >::call = call_t<Templ>
Deprecated
This is an alias of call_t. The name call will be used for a static constexpr method template in the future.

◆ call_t

template<class... T>
template<template< class... > class Templ>
using ugmisc::type_list< T >::call_t
Initial value:
typename Templ<T...>::type

Like apply, but treats the template as a metafunction whose return value is a type member called type.

◆ prepend

template<class... T>
template<class... U>
using ugmisc::type_list< T >::prepend = prepend_t<U...>
Deprecated
This is an alias of prepend_t. The name prepend will be used for a static constexpr method template in the future.

◆ prepend_t

template<class... T>
template<class... U>
using ugmisc::type_list< T >::prepend_t = type_list<U..., T...>

A type_list with the type arguments prepended.

◆ stride

template<class... T>
template<std::ptrdiff_t Base, std::ptrdiff_t Stride, std::size_t Count>
using ugmisc::type_list< T >::stride = stride_t<Base, Stride, Count>
Deprecated
This is an alias of stride_t. The name stride will be used for a static constexpr method template in the future.

◆ stride_t

template<class... T>
template<std::ptrdiff_t Base, std::ptrdiff_t Stride, std::size_t Count>
using ugmisc::type_list< T >::stride_t = type_list_stride<Base, Stride, Count, type_list>

◆ sublist_t

template<class... T>
template<std::size_t From, std::size_t To>
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.

Template Parameters
FromThe first type element index.
ToThe end index.
See also
type_list_sublist

The documentation for this struct was generated from the following file: