Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTButil.hxx

Go to the documentation of this file.
00001 #ifndef _CTButil_HXX
00002 #define _CTButil_HXX 1
00003 
00008 /*----------------------------------------------------------------------------*/
00009 /* C Tool Box: Designed and implemented by:                                   */
00010 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00011 /*                          Postfach 110552, D-64220 Darmstadt, Germany       */
00012 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00013 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00014 /*------------------------------------------+---------------------------------*/
00015 //
00016 // Map the redundant comparison operators:
00017 //
00018 //    operator!=    --> operator==
00019 //    operator>     --> operator<
00020 //    operator<=    --> operator<
00021 //    operator>=    --> operator<
00022 //
00023 // This is done as described in `The Standart Template Library' by A. Stepanov
00024 // (rev. Oct 31, 1995, chapter 4.1)
00025 //
00026 
00027 #ifdef never
00028 
00029 template <class T1, class T2>
00030 inline bool operator!=(const T1& x, const T2& y) {
00031   return !(x == y);
00032 }
00033 
00034 template <class T1, class T2>
00035 inline bool operator>(const T1& x, const T2& y) {
00036   return y < x;
00037 }
00038 
00039 template <class T1, class T2>
00040 inline bool operator<=(const T1& x, const T2& y) {
00041   return !(y < x);
00042 }
00043 
00044 template <class T1, class T2>
00045 inline bool operator>=(const T1& x, const T2& y) {
00046   return !(x < y);
00047 }
00048 
00049 #else
00050 
00051 #include <utility>
00052 
00053 #endif
00054 
00055 #endif

Generated at Fri Oct 24 18:11:30 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001