CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
special_less.h
Go to the documentation of this file.
1 #ifndef SPECIAL_LESS
2 #define SPECIAL_LESS
3 
4 #include <functional>
5 
6 struct fabs_less {
7  bool operator()(const double x, const double y) const {
8  return fabs(x) < fabs(y);
9  }
10 };
11 
12 template <class T>
13 struct pt_less : std::binary_function <T,T,bool> {
14  bool operator() (const T& x, const T& y) const
15  {return x.Pt() < y.Pt();}
16 };
17 
18 template <class T>
19 struct pair2_less : std::binary_function <T,T,bool> {
20  bool operator() (const T& x, const T& y) const
21  {return x.second < y.second;}
22 };
23 
24 #endif
bool operator()(const T &x, const T &y) const
Definition: special_less.h:14
bool operator()(const double x, const double y) const
Definition: special_less.h:7
bool operator()(const T &x, const T &y) const
Definition: special_less.h:20
x
Definition: VDTMath.h:216
long double T