inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/mnmx
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_mnmx
00005 #define inlib_mnmx
00006 
00007 namespace inlib {
00008 
00009 template <class T>
00010 inline T mn(const T& a,const T& b) {
00011   return (a<b?a:b);
00012 }    
00013 
00014 template <class T>
00015 inline T mx(const T& a,const T& b) {
00016   return (a>b?a:b);
00017 }    
00018 
00019 }
00020 
00021 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines