ATLAS Offline Software
NoDeletePtr.h
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef ActsGeoUtils_NODELETEPTR_H
6 #define ActsGeoUtils_NODELETEPTR_H
7 
8 #include <memory>
9 
14 namespace ActsTrk {
15 
16  template<class Obj>
17  class NoDeletePtr: public std::shared_ptr<Obj> {
18  public:
19  struct Deleter {
20  void operator()(Obj*) const{}
21  };
22  NoDeletePtr(Obj* ptr):
23  std::shared_ptr<Obj>(ptr, Deleter{}){
24  }
25  };
26 }
27 #endif
ActsTrk::NoDeletePtr::Deleter
Definition: NoDeletePtr.h:19
ActsTrk::NoDeletePtr::Deleter::operator()
void operator()(Obj *) const
Definition: NoDeletePtr.h:20
ActsTrk::NoDeletePtr::NoDeletePtr
NoDeletePtr(Obj *ptr)
Definition: NoDeletePtr.h:22
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:49
ActsTrk::NoDeletePtr
Definition: NoDeletePtr.h:17