Nano
A C++ template metaprogramming library
Public Types | Static Public Attributes | List of all members
nano::list< Ts > Struct Template Reference

Meta class that holds types, and allows functions to be applied to the elements of the list using the internal apply struct.

Usage:

using nano::dim; \ To get dimension types
using test_list = list<i, j, k, l>; \ A list of dimensions

using shifted_list = list::apply<shift>;

Where shift is some function which operates on a type in the list. More...

#include <list.hpp>

Public Types

using type = list< Ts...>
 

Static Public Attributes

static constexpr std::size_t size = sizeof...(Ts)
 The size of the list. More...
 

Detailed Description

template<typename... Ts>
struct nano::list< Ts >

Meta class that holds types, and allows functions to be applied to the elements of the list using the internal apply struct.

Usage:

using nano::dim; \ To get dimension types
using test_list = list<i, j, k, l>; \ A list of dimensions

using shifted_list = list::apply<shift>;

Where shift is some function which operates on a type in the list.

Template Parameters
TsThe tyes of the elements in the list

Member Typedef Documentation

template<typename... Ts>
using nano::list< Ts >::type = list<Ts...>

Member Data Documentation

template<typename... Ts>
constexpr std::size_t nano::list< Ts >::size = sizeof...(Ts)
static

The size of the list.


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