35 #ifndef _BLAZE_UTIL_TYPETRAITS_HASSIZE_H_
36 #define _BLAZE_UTIL_TYPETRAITS_HASSIZE_H_
75 template<
typename T,
size_t Size >
81 enum { value = (
sizeof( T ) == Size ) };
100 template<
size_t Size >
101 struct HasSize<void,Size> :
public SelectType< 0 == Size, TrueType, FalseType >::Type
105 enum { value = ( 0 == Size ) };
124 template<
size_t Size >
125 struct HasSize<const void,Size> :
public SelectType< 0 == Size, TrueType, FalseType >::Type
129 enum { value = ( 0 == Size ) };
130 typedef typename SelectType<value,TrueType,FalseType>::Type Type;
148 template<
size_t Size >
149 struct HasSize<volatile void,Size> :
public SelectType< 0 == Size, TrueType, FalseType >::Type
153 enum { value = ( 0 == Size ) };
154 typedef typename SelectType<value,TrueType,FalseType>::Type Type;
172 template<
size_t Size >
173 struct HasSize<const volatile void,Size> :
public SelectType< 0 == Size, TrueType, FalseType >::Type
177 enum { value = ( 0 == Size ) };
178 typedef typename SelectType<value,TrueType,FalseType>::Type Type;
212 template<
typename T >
245 template<
typename T >
278 template<
typename T >
311 template<
typename T >
Header file for the FalseType type/value trait base class.
Compile time size check.This type trait offers the possibility to test whether a given type has a siz...
Definition: HasSize.h:213
Compile time size check.This class offers the possibility to test the size of a type at compile time...
Definition: HasSize.h:76
Compile time size check.This type trait offers the possibility to test whether a given type has a siz...
Definition: HasSize.h:246
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Header file for the SelectType class template.
Compile time size check.This type trait offers the possibility to test whether a given type has a siz...
Definition: HasSize.h:279
Compile time size check.This type trait offers the possibility to test whether a given type has a siz...
Definition: HasSize.h:312
Header file for basic type definitions.
Header file for the TrueType type/value trait base class.