CMS 3D CMS Logo

FreeFunctionSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_FreeFunctionSelector_h
2 #define CommonTools_UtilAlgos_FreeFunctionSelector_h
3 /* \class FreeFunctionSelector
4  *
5  * \author Luca Lista, INFN
6  *
7  * \version $Id: FreeFunctionSelector.h,v 1.1 2008/01/22 11:17:58 llista Exp $
8  */
9 template<typename T, bool (*f)(const T&)>
11  bool operator()(const T& t) {
12  return f(t);
13  }
14 };
15 
18 
19 namespace reco {
20  namespace modules {
21  template<typename T, bool (*f)(const T&)>
24  static value_type make(const edm::ParameterSet & cfg, edm::ConsumesCollector & iC) {
25  return value_type();
26  }
27  };
28  }
29 }
30 
31 
32 
33 #endif
double f[11][100]
fixed size matrix
long double T
static value_type make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
bool operator()(const T &t)