blaze::IsView< T > Struct Template Reference

Compile time check for views.This type trait tests whether or not the given template parameter is a view (i.e. subvector, submatrix, row, column, ...). In case the type is a view, 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. More...

#include <IsView.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for views.

This type trait tests whether or not the given template parameter is a view (i.e. subvector, submatrix, row, column, ...). In case the type is a view, 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.

typedef blaze::Subvector<VectorType> SubvectorType;
typedef blaze::Row<MatrixType> RowType;
typedef blaze::Column<MatrixType> ColumnType;
blaze::IsView< volatile ColumnType > // Is derived from TrueType
blaze::IsView< volatile MatrixType > // Is derived from FalseType

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