1 // Dear emacs, this is -*- c++ -*-
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
7 // $Id: TDestructor.icc 599775 2014-06-01 16:20:52Z krasznaa $
8 #ifndef XAODROOTACCESS_TOOLS_TDESTRUCTOR_ICC
9 #define XAODROOTACCESS_TOOLS_TDESTRUCTOR_ICC
13 /// The function just assumes that the pointer given to it is a valid
14 /// pointer of type T, and deletes the object behind the pointer accordingly.
16 /// @param ptr A pointer to an object of type T
19 void TDestructor< T >::destruct( void* ptr ) const {
21 // Do a forceful cast:
22 T* p = reinterpret_cast< T* >( ptr );
23 // And now delete the object:
31 #endif // XAODROOTACCESS_TOOLS_TDESTRUCTOR_ICC