auto_ptr< _Tp > Class Template Reference

#include <_auto_ptr.h>

Inheritance diagram for auto_ptr< _Tp >:

__ptr_base List of all members.

Public Types

typedef _Tp element_type
typedef auto_ptr< _Tp > _Self

Public Member Functions

_Tp * release () _STLP_NOTHROW
void reset (_Tp *__px=0) _STLP_NOTHROW
_Tp * get () const _STLP_NOTHROW
_Tp * operator-> () const _STLP_NOTHROW
_Tp & operator * () const _STLP_NOTHROW
 auto_ptr (_Tp *__px=0) _STLP_NOTHROW
 auto_ptr (_Self &__r) _STLP_NOTHROW
_Selfoperator= (_Self &__r) _STLP_NOTHROW
 ~auto_ptr () _STLP_NOTHROW
 auto_ptr (auto_ptr_ref< _Tp > __r) _STLP_NOTHROW
_Selfoperator= (auto_ptr_ref< _Tp > __r) _STLP_NOTHROW
 operator auto_ptr_ref () _STLP_NOTHROW

Detailed Description

template<class _Tp>
class auto_ptr< _Tp >

Definition at line 48 of file _auto_ptr.h.


Member Typedef Documentation

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

Definition at line 50 of file _auto_ptr.h.

template<class _Tp>
typedef auto_ptr<_Tp> auto_ptr< _Tp >::_Self

Definition at line 51 of file _auto_ptr.h.


Constructor & Destructor Documentation

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

Definition at line 80 of file _auto_ptr.h.

References __ptr_base::__set().

template<class _Tp>
auto_ptr< _Tp >::auto_ptr ( _Self __r  )  [inline]

Definition at line 96 of file _auto_ptr.h.

References __ptr_base::__set().

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

Definition at line 103 of file _auto_ptr.h.

References auto_ptr< _Tp >::get().

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

Definition at line 105 of file _auto_ptr.h.

References __ptr_base::__set().


Member Function Documentation

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

Definition at line 53 of file _auto_ptr.h.

References __ptr_base::_M_p, and auto_ptr< _Tp >::get().

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

Definition at line 59 of file _auto_ptr.h.

References __ptr_base::__set(), and auto_ptr< _Tp >::get().

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

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

Definition at line 70 of file _auto_ptr.h.

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

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

Definition at line 75 of file _auto_ptr.h.

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

template<class _Tp>
_Self& auto_ptr< _Tp >::operator= ( _Self __r  )  [inline]

Definition at line 98 of file _auto_ptr.h.

References auto_ptr< _Tp >::reset().

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

Definition at line 108 of file _auto_ptr.h.

References auto_ptr< _Tp >::reset().

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

Definition at line 119 of file _auto_ptr.h.

References auto_ptr< _Tp >::get().


The documentation for this class was generated from the following file:
  • /home/ntakagi/work/STLport-5.1.5/stlport/stl/_auto_ptr.h



Generated on Mon Mar 10 15:32:56 2008 by  doxygen 1.5.1