File indexing completed on 2024-04-06 12:19:19
0001 #ifndef NPSTAT_COMPLEXCOMPARESFALSE_HH_
0002 #define NPSTAT_COMPLEXCOMPARESFALSE_HH_
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <complex>
0015
0016 namespace npstat {
0017
0018
0019
0020
0021
0022 template <class T>
0023 struct ComplexComparesFalse {
0024 inline static bool less(const T& l, const T& r) { return l < r; }
0025
0026 inline static bool more(const T& l, const T& r) { return l > r; }
0027 };
0028
0029 template <class T>
0030 struct ComplexComparesFalse<std::complex<T> > {
0031 inline static bool less(const std::complex<T>&, const std::complex<T>&) { return false; }
0032
0033 inline static bool more(const std::complex<T>&, const std::complex<T>&) { return false; }
0034 };
0035 }
0036
0037 #endif