diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-17 03:12:19 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-17 03:12:19 +0000 |
commit | 9f2149d5bf03b97b7e47326e64716455b8bb2145 (patch) | |
tree | 1afb0caeddbe71b069948054e8f7722055a63184 /ace/Auto_Ptr.h | |
parent | 1f59a87f2dbcb2766417bd441192914e8131094f (diff) | |
download | ATCD-9f2149d5bf03b97b7e47326e64716455b8bb2145.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Auto_Ptr.h')
-rw-r--r-- | ace/Auto_Ptr.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ace/Auto_Ptr.h b/ace/Auto_Ptr.h index e6639638e2d..fdf00e2cdbc 100644 --- a/ace/Auto_Ptr.h +++ b/ace/Auto_Ptr.h @@ -34,14 +34,15 @@ class ACE_Auto_Basic_Ptr public: // = Initialization and termination methods /* explicit */ ACE_Auto_Basic_Ptr (X *p = 0); - ACE_Auto_Basic_Ptr (const ACE_Auto_Basic_Ptr<X> &ap); - ACE_Auto_Basic_Ptr<X> &operator= (const ACE_Auto_Basic_Ptr<X> &rhs); + ACE_Auto_Basic_Ptr (ACE_Auto_Basic_Ptr<X> &ap); + ACE_Auto_Basic_Ptr<X> &operator= (ACE_Auto_Basic_Ptr<X> &rhs); ~ACE_Auto_Basic_Ptr (void); // = Accessor methods. X &operator *() const; X *get (void) const; - X *release (void) const; + X *release (void); + void reset (X *p = 0); void dump (void) const; // Dump the state of an object. @@ -87,15 +88,16 @@ class ACE_Auto_Basic_Array_Ptr public: // = Initialization and termination methods. /* explicit */ ACE_Auto_Basic_Array_Ptr (X *p = 0); - ACE_Auto_Basic_Array_Ptr (const ACE_Auto_Basic_Array_Ptr<X> &ap); - ACE_Auto_Basic_Array_Ptr<X> &operator= (const ACE_Auto_Basic_Array_Ptr<X> &rhs); + ACE_Auto_Basic_Array_Ptr (ACE_Auto_Basic_Array_Ptr<X> &ap); + ACE_Auto_Basic_Array_Ptr<X> &operator= (ACE_Auto_Basic_Array_Ptr<X> &rhs); ~ACE_Auto_Basic_Array_Ptr (void); // = Accessor methods. X &operator* () const; X &operator[] (int i) const; X *get (void) const; - X *release (void) const; + X *release (void); + void reset (X *p = 0); void dump (void) const; // Dump the state of an object. |