1 #ifndef NPSTAT_ABSDIFFERENCE_HH_ 2 #define NPSTAT_ABSDIFFERENCE_HH_ 18 #include "Alignment/Geners/interface/IOIsUnsigned.hh" 48 template <
typename T,
int Un
signed = 0>
62 inline static return_type delta(
const T& v1,
const T& v2) {
return v1 > v2 ? v1 - v2 : v2 - v1; }
87 #endif // NPSTAT_ABSDIFFERENCE_HH_
static return_type delta(const T &v1, const T &v2)
static return_type value(const T &v1)
Private::AbsReturnType< T >::type absDifference(const T &v1, const T &v2)
static return_type value(const T &v1)
Private::AbsReturnType< T >::type return_type
Abs< T >::type abs(const T &t)
Private::AbsReturnType< T >::type absValue(const T &v1)
Private::AbsReturnType< T >::type return_type
static return_type delta(const T &v1, const T &v2)