Whole document tree
    

Whole document tree

Templatestd::auto_ptr class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::auto_ptr< _Tp > Class Template Reference

#include <std_memory.h>

List of all members.

Public Types

typedef _Tp element_type

Public Methods

 auto_ptr (_Tp *__p=0) __STL_NOTHROW
 auto_ptr (auto_ptr &__a) __STL_NOTHROW
template<class _Tp1>  auto_ptr (auto_ptr< _Tp1 > &__a) __STL_NOTHROW
auto_ptr & operator= (auto_ptr &__a) __STL_NOTHROW
template<class _Tp1> auto_ptr & operator= (auto_ptr< _Tp1 > &__a) __STL_NOTHROW
 ~auto_ptr ()
_Tp & operator * () const __STL_NOTHROW
_Tp * operator-> () const __STL_NOTHROW
_Tp * get () const __STL_NOTHROW
_Tp * release () __STL_NOTHROW
void reset (_Tp *__p=0) __STL_NOTHROW
 auto_ptr (auto_ptr_ref< _Tp > __ref) __STL_NOTHROW
auto_ptr & operator= (auto_ptr_ref< _Tp > __ref) __STL_NOTHROW
template<class _Tp1>  operator auto_ptr_ref () __STL_NOTHROW
template<class _Tp1>  operator auto_ptr () __STL_NOTHROW

Private Attributes

_Tp * _M_ptr

template<class _Tp>
class std::auto_ptr< _Tp >


Member Typedef Documentation

template<class _Tp>
typedef _Tp std::auto_ptr< _Tp >::element_type
 

Definition at line 70 of file std_memory.h.


Constructor & Destructor Documentation

template<class _Tp>
std::auto_ptr< _Tp >::auto_ptr _Tp *    __p = 0 [inline, explicit]
 

Definition at line 72 of file std_memory.h.

template<class _Tp>
std::auto_ptr< _Tp >::auto_ptr auto_ptr< _Tp > &    __a [inline]
 

Definition at line 73 of file std_memory.h.

template<class _Tp>
template<class _Tp1>
std::auto_ptr< _Tp >::auto_ptr auto_ptr< _Tp1 > &    __a [inline]
 

Definition at line 75 of file std_memory.h.

template<class _Tp>
std::auto_ptr< _Tp >::~auto_ptr   [inline]
 

Definition at line 93 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr.

template<class _Tp>
std::auto_ptr< _Tp >::auto_ptr auto_ptr_ref< _Tp >    __ref [inline]
 

Definition at line 121 of file std_memory.h.


Member Function Documentation

template<class _Tp>
_Tp* std::auto_ptr< _Tp >::get void    const [inline]
 

Definition at line 101 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr.

Referenced by std::auto_ptr< _Tp >::operator=().

template<class _Tp>
_Tp& std::auto_ptr< _Tp >::operator *   const [inline]
 

Definition at line 95 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr.

template<class _Tp>
template<class _Tp1>
std::auto_ptr< _Tp >::operator auto_ptr   [inline]
 

Definition at line 134 of file std_memory.h.

References std::auto_ptr< _Tp >::release().

template<class _Tp>
template<class _Tp1>
std::auto_ptr< _Tp >::operator auto_ptr_ref   [inline]
 

Definition at line 132 of file std_memory.h.

References std::auto_ptr< _Tp >::release().

template<class _Tp>
_Tp* std::auto_ptr< _Tp >::operator->   const [inline]
 

Definition at line 98 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr.

template<class _Tp>
auto_ptr& std::auto_ptr< _Tp >::operator= auto_ptr_ref< _Tp >    __ref [inline]
 

Definition at line 124 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr, and std::auto_ptr< _Tp >::get().

template<class _Tp>
template<class _Tp1>
auto_ptr& std::auto_ptr< _Tp >::operator= auto_ptr< _Tp1 > &    __a [inline]
 

Definition at line 84 of file std_memory.h.

References std::auto_ptr< _Tp >::reset().

template<class _Tp>
auto_ptr& std::auto_ptr< _Tp >::operator= auto_ptr< _Tp > &    __a [inline]
 

Definition at line 78 of file std_memory.h.

References std::auto_ptr< _Tp >::reset().

template<class _Tp>
_Tp* std::auto_ptr< _Tp >::release   [inline]
 

Definition at line 104 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr.

Referenced by std::_Format_cache< _CharT >::_S_get(), std::auto_ptr< _Tp >::operator auto_ptr(), and std::auto_ptr< _Tp >::operator auto_ptr_ref().

template<class _Tp>
void std::auto_ptr< _Tp >::reset _Tp *    __p = 0 [inline]
 

Definition at line 109 of file std_memory.h.

References std::auto_ptr< _Tp >::_M_ptr.

Referenced by std::auto_ptr< _Tp >::operator=().


Member Data Documentation

template<class _Tp>
_Tp* std::auto_ptr< _Tp >::_M_ptr [private]
 

Definition at line 67 of file std_memory.h.

Referenced by std::auto_ptr< _Tp >::get(), std::auto_ptr< _Tp >::operator *(), std::auto_ptr< _Tp >::operator->(), std::auto_ptr< _Tp >::operator=(), std::auto_ptr< _Tp >::release(), std::auto_ptr< _Tp >::reset(), and std::auto_ptr< _Tp >::~auto_ptr().


The documentation for this class was generated from the following file:
Generated on Mon Apr 8 03:17:58 2002 for libstdc++-v3 Source by doxygen1.2.15