auto_ptr Class Reference

class auto_ptr : public __ptr_base

Inherits from

Public Member Functions
auto_ptr ()
auto_ptr (_Tp *)
auto_ptr (auto_ptr< _Tp1 > &)
auto_ptr ( _Self &)
auto_ptr ( auto_ptr_ref < _Tp >)
~auto_ptr ()
_Tp * get ()
operator auto_ptr< _Tp1 > ()
operator auto_ptr_ref< _Tp1 > ()
_Tp & operator* ()
_Tp * operator-> ()
auto_ptr< _Tp > & operator= (auto_ptr< _Tp1 > &)
_Self & operator= ( _Self &)
_Self & operator= ( auto_ptr_ref < _Tp >)
_Self & operator= (_Tp *)
_Tp * release ()
void reset (_Tp *)
Inherited Functions
__ptr_base::__set(const void *)
__ptr_base::__set(void *)
Public Member Type Definitions
typedef auto_ptr< _Tp > _Self
typedef _Tp element_type
Inherited Attributes
__ptr_base::_M_p

Constructor & Destructor Documentation

auto_ptr()

auto_ptr ( ) [inline]

auto_ptr(_Tp *)

auto_ptr ( _Tp * __px ) [inline, explicit]

Parameters

_Tp * __px

auto_ptr(auto_ptr< _Tp1 > &)

auto_ptr ( auto_ptr< _Tp1 > & __r ) [inline]

Parameters

auto_ptr< _Tp1 > & __r

auto_ptr(_Self &)

auto_ptr ( _Self & __r ) [inline]

Parameters

_Self & __r

auto_ptr(auto_ptr_ref< _Tp >)

auto_ptr ( auto_ptr_ref < _Tp > __r ) [inline]

Parameters

auto_ptr_ref < _Tp > __r

~auto_ptr()

~auto_ptr ( ) [inline]

Member Functions Documentation

get()

_Tp * get ( ) const [inline]

operator auto_ptr< _Tp1 >()

operator auto_ptr< _Tp1 > ( ) [inline]

operator auto_ptr_ref< _Tp1 >()

operator auto_ptr_ref< _Tp1 > ( ) [inline]

operator*()

_Tp & operator* ( ) const [inline]

operator->()

_Tp * operator-> ( ) const [inline]

operator=(auto_ptr< _Tp1 > &)

auto_ptr< _Tp > & operator= ( auto_ptr< _Tp1 > & __r ) [inline]

Parameters

auto_ptr< _Tp1 > & __r

operator=(_Self &)

_Self & operator= ( _Self & __r ) [inline]

Parameters

_Self & __r

operator=(auto_ptr_ref< _Tp >)

_Self & operator= ( auto_ptr_ref < _Tp > __r ) [inline]

Parameters

auto_ptr_ref < _Tp > __r

operator=(_Tp *)

_Self & operator= ( _Tp * __px ) [inline]

Parameters

_Tp * __px

release()

_Tp * release ( ) [inline]

reset(_Tp *)

void reset ( _Tp * __px = 0 ) [inline]

Parameters

_Tp * __px = 0

Member Type Definitions Documentation

Typedef _Self

typedef auto_ptr< _Tp > _Self

Typedef element_type

typedef _Tp element_type