Blaze 3.9
blaze::TypeAt< TL, Index > Struct Template Reference

Indexing a type list. More...

Detailed Description

template<typename TL, size_t Index>
struct blaze::TypeAt< TL, 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 Type. The following example gives an impression of the use of the TypeAt class:

using Floats = blaze::TypeList< float, double, long double >; // Defining a new type list
using Index0 = blaze::TypeAt< Floats, 0 >::Type; // Indexing of the type list at index 0
Indexing a type list.
Definition: TypeAt.h:75
Implementation of a type list.
Definition: TypeList.h:120
Note
The access index is zero based!

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