diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
commit | a5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch) | |
tree | bcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/Auto_Ptr.cpp | |
download | ATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz |
Initial revision
Diffstat (limited to 'ace/Auto_Ptr.cpp')
-rw-r--r-- | ace/Auto_Ptr.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ace/Auto_Ptr.cpp b/ace/Auto_Ptr.cpp new file mode 100644 index 00000000000..67bc370b505 --- /dev/null +++ b/ace/Auto_Ptr.cpp @@ -0,0 +1,50 @@ +// Auto_Ptr.cpp +// $Id$ + +#if !defined (ACE_AUTO_PTR_C) +#define ACE_AUTO_PTR_C + +#define ACE_BUILD_DLL +#include "ace/Auto_Ptr.h" + +#if !defined (__ACE_INLINE__) +#include "ace/Auto_Ptr.i" +#endif /* __ACE_INLINE__ */ + +ACE_ALLOC_HOOK_DEFINE(auto_ptr) + +template<class X> void +auto_ptr<X>::dump (void) const +{ + ACE_TRACE ("auto_ptr<X>::dump"); +} + +template<class X> void +auto_ptr<X>::remove (X *& x) +{ + ACE_TRACE ("auto_ptr<X>::remove"); + + X *tp = x; + x = 0; + delete tp; +} + +ACE_ALLOC_HOOK_DEFINE(auto_array_ptr) + +template<class X> void +auto_array_ptr<X>::dump (void) const +{ + ACE_TRACE ("auto_array_ptr<X>::dump"); +} + +template<class X> void +auto_array_ptr<X>::remove (X *& x) +{ + ACE_TRACE ("auto_array_ptr<X>::remove"); + + X *tp = x; + x = 0; + delete [] tp; +} + +#endif /* ACE_AUTO_PTR_C */ |