Implements the draft C++ standard auto_ptr abstraction. This version can be used instead of auto_ptr<T>, and obviates the need for the ACE_AUTO_PTR_RESET macro on platforms like VC6 where the auto_ptr<T> is broken. More...
#include <Auto_Ptr.h>
Public Types | |
typedef X | element_type |
Public Member Functions | |
ACE_Auto_Ptr (X *p=0) | |
X * | operator-> () const |
Implements the draft C++ standard auto_ptr abstraction. This version can be used instead of auto_ptr<T>, and obviates the need for the ACE_AUTO_PTR_RESET macro on platforms like VC6 where the auto_ptr<T> is broken.
Definition at line 114 of file Auto_Ptr.h.
typedef X ACE_Auto_Ptr< X >::element_type |
Reimplemented from ACE_Auto_Basic_Ptr< X >.
Definition at line 117 of file Auto_Ptr.h.
ACE_Auto_Ptr< X >::ACE_Auto_Ptr | ( | X * | p = 0 |
) | [inline, explicit] |
Definition at line 120 of file Auto_Ptr.h.
: ACE_Auto_Basic_Ptr<X> (p) {}
X * ACE_Auto_Ptr< X >::operator-> | ( | ) | const [inline] |
Definition at line 96 of file Auto_Ptr.inl.
{ ACE_TRACE ("ACE_Auto_Ptr<X>::operator->"); return this->get (); }