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

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

#include <IsSigned.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for signed data types.

This type trait tests whether or not the given template parameter is a signed integral or a floating point data type. In case the type is a signed (possibly cv-qualified) data type, 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.

class MyClass {};
blaze::IsSigned<short>::value // Evaluates to 'true'
blaze::IsSigned<const int>::Type // Results in TrueType
blaze::IsSigned<volatile float> // Is derived from TrueType
blaze::IsSigned<unsigned int>::value // Evaluates to 'false'
blaze::IsSigned<MyClass> // Is derived from FalseType
Compile time check for signed data types.
Definition: IsSigned.h:79

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