CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Difference.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_Difference_h
2 #define PhysicsTools_Utilities_Difference_h
5 
6 namespace funct {
7 
8  template<typename A, typename B>
9  struct Difference {
11  inline static type combine(const A& a, const B& b) { return a + (-b); }
12  };
13 
14  template<typename A, typename B>
15  inline typename Difference<A, B>::type operator-(const A& a, const B& b) {
16  return Difference<A, B>::combine(a, b);
17  }
18 
19 }
20 
21 #endif
Difference< A, B >::type operator-(const A &a, const B &b)
Definition: Difference.h:15
static type combine(const A &a, const B &b)
Definition: Difference.h:11
Sum< A, typename Minus< B >::type >::type type
Definition: Difference.h:10
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
Definition: Sum.h:27