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

Compile time check for views. More...

#include <IsView.h>

Inherits decltype isView_backend std::declval< 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
Efficient implementation of a dynamic matrix.
Definition: DynamicMatrix.h:242
Efficient implementation of a fixed-sized vector.
Definition: StaticVector.h:230
decltype(auto) column(Matrix< MT, SO > &matrix, RCAs... args)
Creating a view on a specific column of the given matrix.
Definition: Column.h:137
@ aligned
Flag for aligned vectors and matrices.
Definition: AlignmentFlag.h:65
decltype(auto) row(Matrix< MT, SO > &, RRAs...)
Creating a view on a specific row of the given matrix.
Definition: Row.h:137
decltype(auto) subvector(Vector< VT, TF > &, RSAs...)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:158
Compile time check for views.
Definition: IsView.h:103

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