g4tools  5.4.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
mnmx
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_mnmx
5 #define tools_mnmx
6 
7 namespace tools {
8 
9 template <class T>
10 inline T mn(const T& a,const T& b) {return (a<b?a:b);}
11 
12 template <class T>
13 inline T mx(const T& a,const T& b) {return (a>b?a:b);}
14 
15 // long name :
16 template <class T>
17 inline T min_of(const T& a,const T& b) {return (a<b?a:b);}
18 
19 template <class T>
20 inline T max_of(const T& a,const T& b) {return (a>b?a:b);}
21 
22 }
23 
24 #endif
tools::mn
T mn(const T &a, const T &b)
Definition: mnmx:10
tools::mx
T mx(const T &a, const T &b)
Definition: mnmx:13
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::min_of
T min_of(const T &a, const T &b)
Definition: mnmx:17
tools::max_of
T max_of(const T &a, const T &b)
Definition: mnmx:20