ReactOS 0.4.16-dev-340-g0540c21
auto_ptr_ref< _Tp > Class Template Reference

#include <_auto_ptr.h>

Collaboration diagram for auto_ptr_ref< _Tp >:

Public Member Functions

 auto_ptr_ref (__ptr_base &__r, _Tp *__p)
 
_Tp * release () const
 

Public Attributes

__ptr_base_M_r
 
_Tp *const _M_p
 

Private Types

typedef auto_ptr_ref< _Tp > _Self
 

Private Member Functions

_Selfoperator= (_Self const &)
 

Detailed Description

template<class _Tp>
class auto_ptr_ref< _Tp >

Definition at line 32 of file _auto_ptr.h.

Member Typedef Documentation

◆ _Self

template<class _Tp >
typedef auto_ptr_ref<_Tp> auto_ptr_ref< _Tp >::_Self
private

Definition at line 43 of file _auto_ptr.h.

Constructor & Destructor Documentation

◆ auto_ptr_ref()

template<class _Tp >
auto_ptr_ref< _Tp >::auto_ptr_ref ( __ptr_base __r,
_Tp *  __p 
)
inline

Definition at line 37 of file _auto_ptr.h.

37: _M_r(__r), _M_p(__p) { }
__ptr_base & _M_r
Definition: _auto_ptr.h:34
_Tp *const _M_p
Definition: _auto_ptr.h:35

Member Function Documentation

◆ operator=()

template<class _Tp >
_Self & auto_ptr_ref< _Tp >::operator= ( _Self const )
private

◆ release()

template<class _Tp >
_Tp * auto_ptr_ref< _Tp >::release ( ) const
inline

Definition at line 39 of file _auto_ptr.h.

39{ _M_r.__set(__STATIC_CAST(void*, 0)); return _M_p; }
void __set(const volatile void *p)
Definition: _auto_ptr.h:27
#define __STATIC_CAST(__x, __y)
Definition: features.h:585

Member Data Documentation

◆ _M_p

template<class _Tp >
_Tp* const auto_ptr_ref< _Tp >::_M_p

Definition at line 35 of file _auto_ptr.h.

Referenced by auto_ptr_ref< _Tp >::release().

◆ _M_r

template<class _Tp >
__ptr_base& auto_ptr_ref< _Tp >::_M_r

Definition at line 34 of file _auto_ptr.h.

Referenced by auto_ptr_ref< _Tp >::release().


The documentation for this class was generated from the following file: