Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/meshgen2d/src/include/minmaxpatch.h
3203 views
1
#ifndef MINGW32
2
#ifndef MINMAXPATCH_H
3
#define MINMAXPATCH_H
4
5
namespace std
6
{
7
8
#undef min
9
#undef max
10
11
template <class _Tp>
12
inline const _Tp& min(const _Tp& __a, const _Tp& __b) {
13
return __b < __a ? __b : __a;
14
}
15
16
template <class _Tp>
17
inline const _Tp& max(const _Tp& __a, const _Tp& __b) {
18
return __a < __b ? __b : __a;
19
}
20
21
};
22
23
#endif
24
#endif
25
26