Blaze 3.9
IsUnion.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_TYPETRAITS_ISUNION_H_
36#define _BLAZE_UTIL_TYPETRAITS_ISUNION_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <type_traits>
45
46
47namespace blaze {
48
49//=================================================================================================
50//
51// CLASS DEFINITION
52//
53//=================================================================================================
54
55//*************************************************************************************************
77template< typename T >
78struct IsUnion
79 : public BoolConstant< std::is_union<T>::value >
80{};
81//*************************************************************************************************
82
83
84//*************************************************************************************************
97template< typename T >
99//*************************************************************************************************
100
101} // namespace blaze
102
103#endif
Header file for the IntegralConstant class template.
constexpr bool IsUnion_v
Auxiliary variable template for the IsUnion type trait.
Definition: IsUnion.h:98
Generic wrapper for a compile time constant integral value.
Definition: IntegralConstant.h:74
Compile time check for union data types.
Definition: IsUnion.h:80