Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/nall/algorithm.hpp
2 views
1
#ifndef NALL_ALGORITHM_HPP
2
#define NALL_ALGORITHM_HPP
3
4
#undef min
5
#undef max
6
7
namespace nall {
8
template<typename T, typename U> T min(const T &t, const U &u) {
9
return t < u ? t : u;
10
}
11
12
template<typename T, typename U> T max(const T &t, const U &u) {
13
return t > u ? t : u;
14
}
15
}
16
17
#endif
18
19