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

Compile time check for pod data types.This type trait tests whether or not the given template parameter is a POD (Plain Old Data) or not. In case the type is a POD, the value member enumeration is set o 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 <IsPod.h>

Inherits Type< T >.

Detailed Description

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

Compile time check for pod data types.

This type trait tests whether or not the given template parameter is a POD (Plain Old Data) or not. In case the type is a POD, the value member enumeration is set o 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.

class A {
int i_;
double d_;
};
class B {
virtual ~B() {}
}
class C {
std::string s_;
};
blaze::IsPod<int>::value // Evaluates to 1
blaze::IsPod<const double>::Type // Results in TrueType
blaze::IsPod<volatile A> // Is derived from TrueType
blaze::IsPod< std::vector<int> >::value // Evaluates to 0
blaze::IsPod<B>::Type // Results in FalseType
blaze::IsPod<C> // Is derived from FalseType

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