IsArray.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISARRAY_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISARRAY_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 //*************************************************************************************************
74 template< typename T >
75 struct IsArray
76  : public BoolConstant< std::is_array<T>::value >
77 {};
78 //*************************************************************************************************
79 
80 
81 //*************************************************************************************************
94 template< typename T >
95 constexpr bool IsArray_v = IsArray<T>::value;
96 //*************************************************************************************************
97 
98 } // namespace blaze
99 
100 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsArray_v
Auxiliary variable template for the IsArray type trait.The IsArray_v variable template provides a con...
Definition: IsArray.h:95
Compile time type check.The IsArray type trait tests whether or not the given template parameter is a...
Definition: IsArray.h:75
Header file for the IntegralConstant class template.