/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/Utilities/interface/Difference.h
21 строка
607 B
Cms Build
Clang-Format
31 май 2019, 17:22
31 май 2019, 17:22
88e58de
Код
Авторство
О чём код?
#ifndef PhysicsTools_Utilities_Difference_h #define PhysicsTools_Utilities_Difference_h #include "PhysicsTools/Utilities/interface/Sum.h" #include "PhysicsTools/Utilities/interface/Minus.h" namespace funct { template <typename A, typename B> struct Difference { typedef typename Sum<A, typename Minus<B>::type>::type type; inline static type combine(const A& a, const B& b) { return a + (-b); } }; template <typename A, typename B> inline typename Difference<A, B>::type operator-(const A& a, const B& b) { return Difference<A, B>::combine(a, b); } } // namespace funct #endif