CMS 3D CMS Logo

FwdPtrConversionFactory.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_FwdPtrConversionFactory_h
2 #define CommonTools_UtilAlgos_FwdPtrConversionFactory_h
3 
14 
15 namespace edm {
19  template <class T>
21  T operator()(edm::FwdPtr<T> const &r) const { return T(*r); }
22  };
23 
26  template <class T>
28  edm::FwdPtr<T> operator()(edm::View<T> const &view, unsigned int i) const {
29  return edm::FwdPtr<T>(view.ptrAt(i), view.ptrAt(i));
30  }
31  };
32 
33 } // namespace edm
34 
35 #endif
edm::FwdPtr< T > operator()(edm::View< T > const &view, unsigned int i) const
HLT enums.
T operator()(edm::FwdPtr< T > const &r) const
long double T