blaze::Length< TL > Struct Template Reference

Calculating the length of a type list.The Length class can be used to obtain the length of a type list (i.e. the number of contained types). In order to obtain the length of a type list, the Length class has to be instantiated for a particular type list. The length of the type list can be obtained using the member enumeration value. The following example gives an impression of the use of the Length class: More...

#include <Length.h>

Detailed Description

template<typename TL>
struct blaze::Length< TL >

Calculating the length of a type list.

The Length class can be used to obtain the length of a type list (i.e. the number of contained types). In order to obtain the length of a type list, the Length class has to be instantiated for a particular type list. The length of the type list can be obtained using the member enumeration value. The following example gives an impression of the use of the Length class:

using Floats = blaze::TypeList< float, double, long double >; // Defining a new type list
const int length = blaze::Length< Floats >::value; // The length of the type list

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