summaryrefslogtreecommitdiff
path: root/ace/Auto_Ptr.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-21 21:41:34 +0000
commita5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch)
treebcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/Auto_Ptr.cpp
downloadATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz
Initial revision
Diffstat (limited to 'ace/Auto_Ptr.cpp')
-rw-r--r--ace/Auto_Ptr.cpp50
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 */