ATLAS Offline Software
deleter.h
Go to the documentation of this file.
1 #ifndef EVENTCONTAINERS_DELETER_H
2 //#define EVENTCONTAINERS_DELETER_H
3 
4 #if 0
5  struct deleter
6  {
7  void operator() (const void* p);
8  };
9 #endif
10 
11 
12  typedef void deleter_f (const void* p);
13 
15  : public std::unique_ptr<const void, deleter_f*>
16  {
17  public:
18  using std::unique_ptr<const void, deleter_f*>::unique_ptr;
19 
20  template <class T>
21  struct Deleter
22  {
23  static void deleter (const void* p)
24  {
25  delete reinterpret_cast<const T*>(p);
26  }
27  };
28 
29  template <class T>
30  void_unique_ptr(std::unique_ptr<T> p)
31  : std::unique_ptr<const void, deleter_f*> (p.release(),
32  Deleter<T>::deleter)
33  {
34  }
35  };
36 
37 #endif
void_unique_ptr::Deleter::deleter
static void deleter(const void *p)
Definition: deleter.h:23
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
void_unique_ptr::Deleter
Definition: deleter.h:22
void_unique_ptr::void_unique_ptr
void_unique_ptr(std::unique_ptr< T > p)
Definition: deleter.h:30
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
deleter_f
void deleter_f(const void *p)
Definition: deleter.h:12
python.EventInfoMgtInit.release
release
Definition: EventInfoMgtInit.py:24
void_unique_ptr
Definition: deleter.h:16
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35