blaze::IsSigned< T > Struct Template Reference

Compile time check for signed data types.This type trait tests whether or not the given template parameter is a signed integral data type. In case the type is a signed (possibly cv-qualified) data type, the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType. More...

#include <IsSigned.h>

Inherits Type< T >.

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 data type. In case the type is a signed (possibly cv-qualified) data type, the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.

class MyClass {};
blaze::IsSigned<const int>::type // Results in TrueType
blaze::IsSigned<volatile long> // Is derived from TrueType
blaze::IsSigned<const float>::type // Results in FalseType
blaze::IsSigned<MyClass> // Is derived from FalseType

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