Save bitmaps as PNG
[lsnes.git] / include / library / minmax.hpp
blob9e0cf7d69b82a2805815d184ae7444931573e93e
1 #ifndef _library__minmax__hpp__included__
2 #define _library__minmax__hpp__included__
4 #include <map>
6 /**
7 * Return minimum of a and b.
8 */
9 template<typename T> T min(T a, T b)
11 return (a < b) ? a : b;
14 /**
15 * Return maximum of a and b.
17 template<typename T> T max(T a, T b)
19 return (a < b) ? b : a;
23 #endif