Blaze  3.6
blaze::IsShort< T > Struct Template Reference

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

#include <IsShort.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for short integer types.

This type trait tests whether or not the given template parameter is a short integer type (i.e., either (signed) short or unsigned short, possibly cv-qualified). In case the type is a short 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::IsShort<short>::value // Evaluates to 'true'
blaze::IsShort<unsigned int>::value // Evaluates to 'false'
blaze::IsShort<const long>::Type // Results in FalseType
blaze::IsShort<volatile float> // Is derived from FalseType

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