CMS 3D CMS Logo

ComplexComparesFalse.h
Go to the documentation of this file.
1 #ifndef NPSTAT_COMPLEXCOMPARESFALSE_HH_
2 #define NPSTAT_COMPLEXCOMPARESFALSE_HH_
3 
14 #include <complex>
15 
16 namespace npstat {
22  template <class T>
24  {
25  inline static bool less(const T& l, const T& r)
26  {return l < r;}
27 
28  inline static bool more(const T& l, const T& r)
29  {return l > r;}
30  };
31 
32  template <class T>
33  struct ComplexComparesFalse<std::complex<T> >
34  {
35  inline static bool less(const std::complex<T>&, const std::complex<T>&)
36  {return false;}
37 
38  inline static bool more(const std::complex<T>&, const std::complex<T>&)
39  {return false;}
40  };
41 }
42 
43 #endif // NPSTAT_COMPLEXCOMPARESFALSE_HH_
44 
static bool less(const std::complex< T > &, const std::complex< T > &)
static bool less(const T &l, const T &r)
static bool more(const std::complex< T > &, const std::complex< T > &)
long double T
static bool more(const T &l, const T &r)