ATLAS Offline Software
Loading...
Searching...
No Matches
SurfaceUniquePtrT.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef TRKEVENTPRIMITIVES_SURFACEUNIQUEPTRT_H
17#define TRKEVENTPRIMITIVES_SURFACEUNIQUEPTRT_H
18#include <memory>
19
20namespace Trk {
21
22template <class S>
24{
25public:
26 void operator() (const S* p) {
27 if (p && p->isFree()) { delete p; }
28 }
29};
30
31template <class S>
32using SurfaceUniquePtrT = std::unique_ptr<S, SurfaceDeleter<S> >;
33
34} // namespace Trk
35
36#endif
void operator()(const S *p)
Ensure that the ATLAS eigen extensions are properly loaded.
std::unique_ptr< S, SurfaceDeleter< S > > SurfaceUniquePtrT