Min.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_MPL_MIN_H_
36 #define _BLAZE_UTIL_MPL_MIN_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 //*************************************************************************************************
70 template< typename T1 // Type of the first compile time value
71  , typename T2 > // Type of the second compile time value
72 struct Min : public If< Less<T1,T2>, T1, T2 >
73 {};
74 //*************************************************************************************************
75 
76 } // namespace blaze
77 
78 #endif
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
Header file for the Less class template.
Compile time value evaluation.The Min class template selects the smaller of the two given template ar...
Definition: Min.h:72