CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BPHGenericPtr.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_RecoDecay_BPHGenericPtr_h
2 #define HeavyFlavorAnalysis_RecoDecay_BPHGenericPtr_h
3 
4 #include <memory>
5 template <class T>
6 class BPHGenericPtr {
7 public:
8  typedef typename std::shared_ptr<T> type;
9  template <class... Args>
10  static type create(Args&&... args) {
11  return std::make_shared<T>(args...);
12  }
13 };
14 
15 #endif
std::shared_ptr< T > type
Definition: BPHGenericPtr.h:8
static type create(Args &&...args)
Definition: BPHGenericPtr.h:10