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

Compile time check for complex types. More...

#include <IsComplex.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for complex types.

This type trait tests whether or not the given template parameter is a complex data type. In case the type is a complex data type (ignoring the cv-qualifiers), 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.

blaze::IsComplex< complex<double> >::value // Evaluates to 'true'
blaze::IsComplex< const complex<float> >::Type // Results in TrueType
blaze::IsComplex< volatile complex<int> > // Is derived from TrueType
blaze::IsComplex< float >::value // Evaluates to 'false'
blaze::IsComplex< const volatile int > // Is derived from FalseType
Compile time check for complex types.
Definition: IsComplex.h:77

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