Files
geant4/source/analysis/g4tools/include/tools/mnmx
T
2016-06-10 11:51:14 +02:00

22 lines
333 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_mnmx
#define tools_mnmx
namespace tools {
template <class T>
inline T mn(const T& a,const T& b) {
return (a<b?a:b);
}
template <class T>
inline T mx(const T& a,const T& b) {
return (a>b?a:b);
}
}
#endif