/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/Utilities/interface/Square.h
19 строк
443 B
Cms Build
Clang-Format
31 май 2019, 17:22
31 май 2019, 17:22
88e58de
Код
Авторство
О чём код?
#ifndef PhysicsTools_Utilities_Sqare_h #define PhysicsTools_Utilities_Sqare_h #include "PhysicsTools/Utilities/interface/Numerical.h" #include "PhysicsTools/Utilities/interface/Power.h" namespace funct { template <typename F> struct Square { typedef typename Power<F, Numerical<2> >::type type; }; template <typename F> typename Square<F>::type sqr(const F& f) { return pow(f, num<2>()); } } // namespace funct #endif