Blaze 3.9
blaze::Length< TL > Struct Template Reference

Calculating the length of a type list. More...

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
decltype(auto) length(const DenseVector< VT, TF > &dv)
Calculation of the length (magnitude) of the dense vector .
Definition: DVecNormExpr.h:654
Calculating the length of a type list.
Definition: Length.h:71
Implementation of a type list.
Definition: TypeList.h:120

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