1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef MAX_H #define MAX_H template<class L, class R> inline L max(L l, R r) { if (l > r) { return l; }else{ return r; } } #endif // MAX_H