19 #ifndef itkBinaryOperationConcept_h
20 #define itkBinaryOperationConcept_h
40 struct BinaryOperationConcept { };
46 struct Plus : BinaryOperationConcept
48 template <
typename T1,
typename T2>
49 static typename mpl::PromoteType<T1, T2>::Type Apply(T1
const& lhs, T2
const& rhs)
57 struct Sub : BinaryOperationConcept
59 template <
typename T1,
typename T2>
60 static typename mpl::PromoteType<T1, T2>::Type Apply(T1
const& lhs, T2
const& rhs)
68 struct Mult : BinaryOperationConcept
70 template <
typename T1,
typename T2>
71 static typename mpl::PromoteType<T1, T2>::Type Apply(T1
const& lhs, T2
const& rhs)
79 struct Div : BinaryOperationConcept
81 template <
typename T1,
typename T2>
82 static typename mpl::PromoteType<T1, T2>::Type Apply(T1
const& lhs, T2
const& rhs)
91 #endif // itkBinaryOperationConcept_h