CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/JetMETCorrections/InterpolationTables/interface/ComplexComparesFalse.h

Go to the documentation of this file.
00001 #ifndef NPSTAT_COMPLEXCOMPARESFALSE_HH_
00002 #define NPSTAT_COMPLEXCOMPARESFALSE_HH_
00003 
00014 #include <complex>
00015 
00016 namespace npstat {
00022     template <class T>
00023     struct ComplexComparesFalse
00024     {
00025         inline static bool less(const T& l, const T& r)
00026             {return l < r;}
00027 
00028         inline static bool more(const T& l, const T& r)
00029             {return l > r;}
00030     };
00031 
00032     template <class T>
00033     struct ComplexComparesFalse<std::complex<T> >
00034     {
00035         inline static bool less(const std::complex<T>&, const std::complex<T>&)
00036             {return false;}
00037 
00038         inline static bool more(const std::complex<T>&, const std::complex<T>&)
00039             {return false;}
00040     };
00041 }
00042 
00043 #endif // NPSTAT_COMPLEXCOMPARESFALSE_HH_
00044