blaze::IsPaddingEnabled< T > Struct Template Reference

Compile time check for data types.This type trait queries the nested paddingEnabled member of the given data type T, which indicates whether the type provides support for padding (i.e. can properly deal with zeros). If the type is supporting padding, 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. Examples: More...

#include <IsPaddingEnabled.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for data types.

This type trait queries the nested paddingEnabled member of the given data type T, which indicates whether the type provides support for padding (i.e. can properly deal with zeros). If the type is supporting padding, 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. Examples:

struct A { static constexpr bool paddingEnabled = true; };
struct B { static constexpr bool paddingEnabled() { return true; } };
struct C {};
struct D { static constexpr bool paddingEnabled = false; };
struct E { static constexpr bool paddingEnabled() { return false; } };
blaze::IsPaddingEnabled< A >::Type // Results in TrueType
blaze::IsPaddingEnabled< B > // Is derived from TrueType
blaze::IsPaddingEnabled< D >::Type // Results in FalseType
blaze::IsPaddingEnabled< E > // Is derived from FalseType

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