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

Compile time check for long integer types. More...

#include <IsLong.h>

Inherits blaze::IntegralConstant< T, N >.

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 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::IsLong<long>::value // Evaluates to 'true'
blaze::IsLong<const volatile signed long> // Is derived from TrueType
blaze::IsLong<unsigned short>::value // Evaluates to 'false'
blaze::IsLong<const int>::Type // Results in FalseType
blaze::IsLong<volatile float> // Is derived from FalseType
Compile time check for long integer types.
Definition: IsLong.h:77

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