mirror of https://github.com/bsnes-emu/bsnes.git
18 lines
300 B
C++
18 lines
300 B
C++
|
#ifndef NALL_ALGORITHM_HPP
|
||
|
#define NALL_ALGORITHM_HPP
|
||
|
|
||
|
#undef min
|
||
|
#undef max
|
||
|
|
||
|
namespace nall {
|
||
|
template<typename T, typename U> T min(const T &t, const U &u) {
|
||
|
return t < u ? t : u;
|
||
|
}
|
||
|
|
||
|
template<typename T, typename U> T max(const T &t, const U &u) {
|
||
|
return t > u ? t : u;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|