Warning, /include/Geant4/tools/mnmx is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_mnmx
0005 #define tools_mnmx
0006
0007 namespace tools {
0008
0009 template <class T>
0010 inline T mn(const T& a,const T& b) {return (a<b?a:b);}
0011
0012 template <class T>
0013 inline T mx(const T& a,const T& b) {return (a>b?a:b);}
0014
0015 // long name :
0016 template <class T>
0017 inline T min_of(const T& a,const T& b) {return (a<b?a:b);}
0018
0019 template <class T>
0020 inline T max_of(const T& a,const T& b) {return (a>b?a:b);}
0021
0022 }
0023
0024 #endif