All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blaze::Has1Byte< T > Struct Template Reference

Compile time size check.This type trait offers the possibility to test whether a given type has a size of exactly one byte. If the type T has one byte, 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 <HasSize.h>

Inherits blaze::HasSize< T, 1UL >.

Detailed Description

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

Compile time size check.

This type trait offers the possibility to test whether a given type has a size of exactly one byte. If the type T has one byte, 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::Has1Byte<const char>::value // Evaluates to 1 (on most architectures)
blaze::Has1Byte<unsigned char>::Type // Results in TrueType (on most architectures)
blaze::Has1Byte<signed char> // Is derived from TrueType (on most architectures)
blaze::Has1Byte<const float>::Type // Results in FalseType
blaze::Has1Byte<unsigned short> // Is derived from FalseType

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