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

Compile time size check. More...

#include <HasSize.h>

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

Detailed Description

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

Compile time size check.

This type trait offers the possibility to test whether a given type has a size of exactly four bytes. If the type T has four bytes, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives fromTrueType. Otherwise value is set to false, Type is FalseType, and the classderives from FalseType.

blaze::Has8Bytes<double>::value // Evaluates to 'true' (on most architectures)
blaze::Has8Bytes<const double>::Type // Results in TrueType (on most architectures)
blaze::Has8Bytes<volatile double> // Is derived from TrueType (on most architectures)
blaze::Has8Bytes<const float>::Type // Results in FalseType
blaze::Has8Bytes<volatile short> // Is derived from FalseType
Compile time size check.
Definition: HasSize.h:361

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