Blaze  3.6
IsObject.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISOBJECT_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISOBJECT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <type_traits>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
75 template< typename T >
76 struct IsObject
77  : public BoolConstant< std::is_object<T>::value >
78 {};
79 //*************************************************************************************************
80 
81 
82 //*************************************************************************************************
95 template< typename T >
96 constexpr bool IsObject_v = IsObject<T>::value;
97 //*************************************************************************************************
98 
99 } // namespace blaze
100 
101 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Compile time type check.This class tests whether the given template parameter T is an object type....
Definition: IsObject.h:76
constexpr bool IsObject_v
Auxiliary variable template for the IsObject type trait.The IsObject_v variable template provides a c...
Definition: IsObject.h:96
Header file for the IntegralConstant class template.