diff --git a/mrw/stdext.hpp b/mrw/stdext.hpp new file mode 100644 index 0000000..e37cf57 --- /dev/null +++ b/mrw/stdext.hpp @@ -0,0 +1,28 @@ +/** @file + + $Id$ + + $Date$ + $Author$ + + @copy © Marc Wäckerlin + @license LGPL, see file COPYING + + $Log$ + Revision 1.1 2004/10/11 18:30:16 marc + *** empty log message *** + + +*/ + +namespace mrw { + + template const T& min(const T& a, const T& b) { + return a > b ? b : a; + } + + template const T& max(const T& a, const T& b) { + return a < b ? b : a; + } + +}