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 Type< T >.

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.

using VectorType = blaze::StaticVector<int,10UL>;
using MatrixType = blaze::DynamicMatrix<double>;
VectorType a;
MatrixType A( 100UL, 200UL );
using SubvectorType = decltype( blaze::subvector( a, 2UL, 8UL ) );
using RowType = decltype( blaze::row( A, 8UL ) );
using ColumnType = decltype( blaze::column( A, 5UL ) );
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: