ACE  6.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
Auto_Ptr.h File Reference
#include "ace/Auto_Ptr.inl"
#include "ace/Auto_Ptr.cpp"

Classes

class  ACE_Auto_Basic_Ptr< X >
 Implements the draft C++ standard auto_ptr abstraction. This class allows one to work on non-object (basic) types. More...
 
class  auto_ptr< X >
 Implements the draft C++ standard auto_ptr abstraction. More...
 
class  ACE_Auto_Ptr< X >
 Implements the draft C++ standard auto_ptr abstraction. This version can be used instead of auto_ptr<T> More...
 
class  ACE_Auto_Basic_Array_Ptr< X >
 Implements an extension to the draft C++ standard auto_ptr abstraction. This class allows one to work on non-object (basic) types that must be treated as an array, e.g., deallocated via "delete [] foo". More...
 
class  ACE_Auto_Array_Ptr< X >
 Implements an extension to the draft C++ standard auto_ptr abstraction. More...
 

Functions

template<typename AUTO_PTR_TYPE , typename PTR_TYPE >
void ACE_auto_ptr_reset (AUTO_PTR_TYPE &ap, PTR_TYPE *p)
 Reset given auto_ptr element to new element. More...
 

Detailed Description

Id:
Auto_Ptr.h 92580 2010-11-15 09:48:02Z johnnyw
Author
Doug Schmidt schmi.nosp@m.dt@u.nosp@m.ci.ed.nosp@m.u
Irfan Pyarali irfan.nosp@m.@cs..nosp@m.wustl.nosp@m..edu
Jack Reeves jack@.nosp@m.fx.c.nosp@m.om
Dr. Harald M. Mueller muell.nosp@m.er@g.nosp@m.arwei.nosp@m.n.ha.nosp@m.i.sie.nosp@m.mens.nosp@m..co.a.nosp@m.t

Function Documentation

template<typename AUTO_PTR_TYPE , typename PTR_TYPE >
void ACE_auto_ptr_reset ( AUTO_PTR_TYPE &  ap,
PTR_TYPE *  p 
)
inline

Reset given auto_ptr element to new element.

Some platforms have an older version of auto_ptr support, which lacks reset, and cannot be disabled easily. Portability to these platforms requires use of this function template. This function template also works for the ACE_Auto_{Basic_}Array_Ptr class template, as well.