From 849b301d4e659ded784c3201fc5b5297af51a354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 11 Oct 2004 18:30:16 +0000 Subject: [PATCH] *** empty log message *** --- mrw/stdext.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mrw/stdext.hpp 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; + } + +}