libassa 3.5.1
Loading...
Searching...
No Matches
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

R * m_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 */ }
A wrapper class to provide AutoPtr with reference semantics.
Definition AutoPtr.h:32

References m_ptr.

Member Data Documentation

◆ m_ptr

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

Definition at line 36 of file AutoPtr.h.

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


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