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

Compile time check for shrinkable data types. More...

#include <IsShrinkable.h>

Inherits IsDetected< ShrinkToFit_t, RemoveAdaptor_t< T > >.

Detailed Description

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

Compile time check for shrinkable data types.

This type trait tests whether the given data type is a shrinkable data type. In case the data type can be shrunk (via the shrinkToFit() function), 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. Examples:

blaze::IsShrinkable< CompressedVector<double> >::Type // Results in TrueType
blaze::IsShrinkable< DynamicMatrix<int> > // Is derived from TrueType
blaze::IsShrinkable< StaticVector<float,3UL> >::Type // Results in FalseType
Compile time check for shrinkable data types.
Definition: IsShrinkable.h:90

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