/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CommonTools/Utils/interface/MaxFunctionSelector.h
19 строк
439 B
Cms Build
Clang-Format
05 июн 2019, 13:53
05 июн 2019, 13:53
bbbc152
Код
Авторство
О чём код?
#ifndef RecoAlgos_MaxFunctionSelector_h #define RecoAlgos_MaxFunctionSelector_h /* \class MaxSelector * * \author Luca Lista, INFN * * $Id: MaxFunctionSelector.h,v 1.1 2009/02/24 14:40:26 llista Exp $ */ template <typename T, double (T::*fun)() const> struct MaxFunctionSelector { MaxFunctionSelector(double max) : max_(max) {} bool operator()(const T& t) const { return (t.*fun)() <= max_; } private: double max_; }; #endif