blaze::Size< T > Struct Template Reference

Compile time evaluation of the size of a vector.The Size type trait evaluates the size of the given vector type at compile time. In case the given type T is a vector type with a fixed size (e.g. StaticVector), the value member constant is set to the according size. In all other cases, value is set to 0. More...

#include <Size.h>

Inherits blaze::SizeT< 0UL >.

Detailed Description

template<typename T>
struct blaze::Size< T >

Compile time evaluation of the size of a vector.

The Size type trait evaluates the size of the given vector type at compile time. In case the given type T is a vector type with a fixed size (e.g. StaticVector), the value member constant is set to the according size. In all other cases, value is set to 0.

blaze::Size< StaticVector<int,3UL> >::value // Evaluates to 3
blaze::Size< HybridVector<int,3UL> >::value // Evaluates to 0; Only maximum size is fixed!
blaze::Size< DynamicVector<int> >::value // Evaluates to 0; Size not fixed at compile time!
blaze::Size< int >::value // Evaluates to 0

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