Maximum.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_MPL_MAXIMUM_H_
36 #define _BLAZE_UTIL_MPL_MAXIMUM_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/mpl/If.h>
44 #include <blaze/util/mpl/Less.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
71 template< typename T1 // Type of the first compile time value
72  , typename T2 > // Type of the second compile time value
73 struct Maximum
74  : public If_< Less<T1,T2>, T2, T1 >
75 {};
76 //*************************************************************************************************
77 
78 } // namespace blaze
79 
80 #endif
Compile time value evaluation.The Maximum alias declaration selects the larger of the two given templ...
Definition: Maximum.h:73
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
Header file for the Less class template.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154