/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/Utilities/interface/DecomposePower.h
23 строки
722 B
Cms Build
Clang-Format
31 май 2019, 17:22
31 май 2019, 17:22
88e58de
Код
Авторство
О чём код?
#ifndef PhysicsTools_Utilities_DecomposePower_h #define PhysicsTools_Utilities_DecomposePower_h #include "PhysicsTools/Utilities/interface/Power.h" #include "PhysicsTools/Utilities/interface/Numerical.h" namespace funct { template <typename A, typename B> struct DecomposePower { typedef PowerStruct<A, B> type; inline static const A& getBase(const type& _) { return _._1; } inline static const B& getExp(const type& _) { return _._2; } }; template <typename A> struct DecomposePower<A, Numerical<1> > { typedef A type; inline static const A& getBase(const type& _) { return _; } inline static Numerical<1> getExp(const type& _) { return num<1>(); } }; } // namespace funct #endif