blaze::Length< TList > Class 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 <TypeList.h>

Detailed Description

template<typename TList>
class blaze::Length< TList >

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_3( 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 class was generated from the following file: