libassa 3.5.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ASSA::AutoPtrRef< R > Class Template Reference

A wrapper class to provide AutoPtr with reference semantics. More...

#include <AutoPtr.h>

Public Member Functions

 AutoPtrRef (R *p_)
 

Public Attributes

Rm_ptr
 

Detailed Description

template<typename R>
class ASSA::AutoPtrRef< R >

A wrapper class to provide AutoPtr with reference semantics.

An AutoPtr can be assigned (or constructed from) the result of a function which returns an AutoPtr by value (rvalue).

Definition at line 32 of file AutoPtr.h.

Constructor & Destructor Documentation

◆ AutoPtrRef()

template<typename R >
ASSA::AutoPtrRef< R >::AutoPtrRef ( R p_)
inlineexplicit

Definition at line 34 of file AutoPtr.h.

34: m_ptr (p_) { /* no-op */ }

Member Data Documentation

◆ m_ptr

template<typename R >
R* ASSA::AutoPtrRef< R >::m_ptr

Definition at line 36 of file AutoPtr.h.

Referenced by ASSA::AutoPtrArray< X >::operator=(), and ASSA::AutoPtr< X >::operator=().


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