blaze::IsLong< T > Struct Template Reference

Compile time check for long integer types.This type trait tests whether or not the given template parameter is a long integer type (i.e., either (signed) long or unsigned long, possibly cv-qualified). In case the type is a long integer type (ignoring the cv-qualifiers), 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 <IsLong.h>

Inherits FalseType.

Detailed Description

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

Compile time check for long integer types.

This type trait tests whether or not the given template parameter is a long integer type (i.e., either (signed) long or unsigned long, possibly cv-qualified). In case the type is a long integer type (ignoring the cv-qualifiers), 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.

blaze::IsLong<long>::value // Evaluates to 1
blaze::IsLong<const volatile signed long> // Is derived from TrueType
blaze::IsLong<const int>::Type // Results in FalseType
blaze::IsLong<volatile float> // Is derived from FalseType

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