Blaze 3.9
blaze::IsDenseVector< T > Struct Template Reference

Compile time check for dense vector types. More...

#include <IsDenseVector.h>

Inherits decltype isDenseVector_backend std::declval< T * >.

Detailed Description

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

Compile time check for dense vector types.

This type trait tests whether or not the given template parameter is a dense vector type (i.e. whether T is derived from the DenseVector base class). In case the type is a dense vector type, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.

using namespace blaze;
IsDenseVector< DynamicVector<double> >::value // Evaluates to 1
IsDenseVector< const StaticVector<float,3U> >::Type // Results in TrueType
IsDenseVector< volatile StaticVector<int,6U> > // Is derived from TrueType
IsDenseVector< CompressedVector<double> >::value // Evaluates to 0
IsDenseVector< CompressedMatrix<double> >::Type // Results in FalseType
IsDenseVector< DynamicMatrix<double> > // Is derived from FalseType

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