IsDefault.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_ISDEFAULT_H_
36 #define _BLAZE_MATH_SHIMS_ISDEFAULT_H_
37 
38 
39 namespace blaze {
40 
41 //=================================================================================================
42 //
43 // ISDEFAULT SHIM
44 //
45 //=================================================================================================
46 
47 //*************************************************************************************************
67 template< typename Type >
68 inline bool isDefault( const Type& v )
69 {
70  return v == Type();
71 }
72 //*************************************************************************************************
73 
74 } // namespace blaze
75 
76 #endif
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:861
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57