00001 #ifndef MINIMUM_MAXIMUM_TEMPLATE_HEADER_INCLUDED 00002 #define MINIMUM_MAXIMUM_TEMPLATE_HEADER_INCLUDED 00003 00004 template <typename DataType> inline 00005 DataType min(const DataType & x, const DataType & y) 00006 { return ((x > y) ? (y) : (x)); } 00007 00008 template <typename DataType> inline 00009 DataType max(const DataType & x, const DataType & y) 00010 { return ((x < y) ? (y) : (x)); } 00011 00012 #endif