mirror of
https://github.com/devinacker/bsnes-plus.git
synced 2025-04-02 10:52:46 -04:00
17 lines
300 B
C++
17 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
|