All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blaze::TypeAt< TList, Index > Class Template Reference

Indexing a type list.The TypeAt class can be used to access a type list at a specified position to query the according type. In order to index a type list, the TypeAt class has to be instantiated for a particular type list and an index value. The indexed type is available via the member type definition Result. The following example gives an impression of the use of the TypeAt class: More...

#include <TypeList.h>

Detailed Description

template<typename TList, size_t Index>
class blaze::TypeAt< TList, Index >

Indexing a type list.

The TypeAt class can be used to access a type list at a specified position to query the according type. In order to index a type list, the TypeAt class has to be instantiated for a particular type list and an index value. The indexed type is available via the member type definition Result. The following example gives an impression of the use of the TypeAt class:

typedef BLAZE_TYPELIST_3( float, double, long double ) Floats; // Defining a new type list
typedef blaze::TypeAt< Floats, 0 >::Result Index0; // Indexing of the type list at index 0

Note: The access index is zero based!


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