All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsDefault.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_SHIMS_ISDEFAULT_H_
23 #define _BLAZE_MATH_SHIMS_ISDEFAULT_H_
24 
25 
26 namespace blaze {
27 
28 //=================================================================================================
29 //
30 // ISDEFAULT SHIM
31 //
32 //=================================================================================================
33 
34 //*************************************************************************************************
54 template< typename Type >
55 inline bool isDefault( const Type& v )
56 {
57  return v == Type();
58 }
59 //*************************************************************************************************
60 
61 } // namespace blaze
62 
63 #endif