All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsTrue.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_VALUETRAITS_ISTRUE_H_
36 #define _BLAZE_UTIL_VALUETRAITS_ISTRUE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/FalseType.h>
44 #include <blaze/util/SelectType.h>
45 #include <blaze/util/TrueType.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
74 template< bool C >
75 struct IsTrue : public SelectType<C,TrueType,FalseType>::Type
76 {
77  public:
78  //**********************************************************************************************
80  enum { value = ( C )?( 1 ):( 0 ) };
81  typedef typename SelectType<C,TrueType,FalseType>::Type Type;
83  //**********************************************************************************************
84 };
85 //*************************************************************************************************
86 
87 } // namespace blaze
88 
89 #endif
Header file for the FalseType type/value trait base class.
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Header file for the SelectType class template.
Compile time check whether a compile time constant expression evaluates to true.This value trait test...
Definition: IsTrue.h:75
Header file for the TrueType type/value trait base class.