ACE_Auto_Basic_Ptr3
Implements the draft c++ standard auto_ptr abstraction. this class allows one to work on non-object (basic) types
Usage
#include <ace/Auto_Ptr.h>
template<class X>
class ACE_Auto_Basic_Ptr
{
public:
ACE_EXPLICIT ACE_Auto_Basic_Ptr (X *p = 0);
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);
X &operator *() const;
X *get (void) const;
X *release (void);
void reset (X *p = 0);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
protected:
X *p_;
};
Initialization and termination methods
ACE_EXPLICIT ACE_Auto_Basic_Ptr (X *p = 0);
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);
void reset (X *p = 0);
void dump (void) const;
Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
Library
ace