All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EqualTo.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_MPL_EQUALTO_H_
36 #define _BLAZE_UTIL_MPL_EQUALTO_H_
37 
38 
39 namespace blaze {
40 
41 //=================================================================================================
42 //
43 // CLASS DEFINITION
44 //
45 //=================================================================================================
46 
47 //*************************************************************************************************
62 template< typename T1 // Type of the left-hand side condition
63  , typename T2 > // Type of the right-hand side condition
64 struct EqualTo
65 {
66  public:
67  //**********************************************************************************************
69  enum { value = ( T1::value && T2::value ) || ( !T1::value && !T2::value ) };
71  //**********************************************************************************************
72 };
73 //*************************************************************************************************
74 
75 } // namespace blaze
76 
77 #endif
Compile time type value comparison.The EqualTo class templates evaluates whether the two given condit...
Definition: EqualTo.h:64