All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | List of all members
blaze::TypeList< H, T > Struct Template Reference

Implementation of a type list.The TypeList class is an implementation of a type list according to the example of Andrei Alexandrescu. The type list merely consists of the two data types Head and Tail. In order to create type lists of more data types, the TypeList class is used recursively: More...

#include <TypeList.h>

Public Types

typedef H Head
 Type of the head of the type list.
 
typedef T Tail
 Type of the tail of the type list.
 

Detailed Description

template<typename H, typename T>
struct blaze::TypeList< H, T >

Implementation of a type list.

The TypeList class is an implementation of a type list according to the example of Andrei Alexandrescu. The type list merely consists of the two data types Head and Tail. In order to create type lists of more data types, the TypeList class is used recursively:

// Type list containing the three fundamental floating point data types
TypeList< float, TypeList< double, TypeList< long double, NullType > > >

The NullType data type is used to terminate a type list.
In order to create a type list, one of the predefined setup macros should be used:

// Creating a type list consisting of the three fundamental data types
typedef BLAZE_TYPELIST_3( float, double, long double ) Floats;

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