blob: f5a2103e17d460fbf7f6385821d7cc3517e794c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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_basic_ptr)
template<class X> void
auto_basic_ptr<X>::dump (void) const
{
ACE_TRACE ("auto_basic_ptr<X>::dump");
}
template<class X> void
auto_basic_ptr<X>::remove (X *& x)
{
ACE_TRACE ("auto_basic_ptr<X>::remove");
X *tp = x;
x = 0;
delete tp;
}
ACE_ALLOC_HOOK_DEFINE(auto_basic_array_ptr)
template<class X> void
auto_basic_array_ptr<X>::dump (void) const
{
ACE_TRACE ("auto_basic_array_ptr<X>::dump");
}
template<class X> void
auto_basic_array_ptr<X>::remove (X *& x)
{
ACE_TRACE ("auto_basic_array_ptr<X>::remove");
X *tp = x;
x = 0;
delete [] tp;
}
#endif /* ACE_AUTO_PTR_C */
|