blaze::IsVolatile< T > Struct Template Reference

Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given template parameter is a (top level) volatile-qualified data type. In case the given data type is volatile, 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 <IsVolatile.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for volatile data types.

The IsVolatile type trait tests whether or not the given template parameter is a (top level) volatile-qualified data type. In case the given data type is volatile, 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::IsVolatile<int* volatile> // Is derived from TrueType
blaze::IsVolatile<volatile int*>::value // Evaluates to 'false' (the volatile qualifier is not at the top level)
blaze::IsVolatile<const int>::Type // Results in FalseType
blaze::IsVolatile<int> // Is derived from FalseType

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