Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::auto_ptr 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


Member Typedef Documentation

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

Definition at line 41 of file std_memory.h.


Constructor & Destructor Documentation

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

Definition at line 43 of file std_memory.h.

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

Definition at line 44 of file std_memory.h.

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

Definition at line 46 of file std_memory.h.

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

Definition at line 64 of file std_memory.h.

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

Definition at line 92 of file std_memory.h.


Member Function Documentation

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

Definition at line 72 of file std_memory.h.

Referenced by operator=().

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

Definition at line 66 of file std_memory.h.

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

Definition at line 105 of file std_memory.h.

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

Definition at line 103 of file std_memory.h.

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

Definition at line 69 of file std_memory.h.

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

Definition at line 95 of file std_memory.h.

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

Definition at line 55 of file std_memory.h.

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

Definition at line 49 of file std_memory.h.

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

Definition at line 75 of file std_memory.h.

Referenced by operator auto_ptr(), and operator auto_ptr_ref().

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

Definition at line 80 of file std_memory.h.

Referenced by operator=().


Member Data Documentation

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

Definition at line 38 of file std_memory.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:04 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001