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

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

#include <IsClearable.h>

Inherits IsDetected< Clear_t, RemoveAdaptor_t< T > >.

Detailed Description

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

Compile time check for clearable data types.

This type trait tests whether the given data type is a clearable data type. In case the data type can be cleared (via the clear() 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::IsClearable< CompressedVector<double> >::Type // Results in TrueType
blaze::IsClearable< ZeroMatrix<int> > // Is derived from TrueType
blaze::IsClearable< StaticVector<float,3UL> >::Type // Results in FalseType
blaze::IsClearable< const DynamicVector<float> > // Is derived from FalseType
Compile time check for clearable data types.
Definition: IsClearable.h:90

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