Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
simple_ptr< T > Class Template Reference

Manages resources for a single object. More...

#include <smartptr.h>

Public Member Functions

 simple_ptr (T *p=NULL)
 
 ~simple_ptr ()
 

Public Attributes

Tm_p
 

Detailed Description

template<class T>
class simple_ptr< T >

Manages resources for a single object.

Template Parameters
Tclass or type

simple_ptr is used frequently in the library to manage resources and ensure cleanup under the RAII pattern (Resource Acquisition Is Initialization).

Definition at line 20 of file smartptr.h.

Constructor & Destructor Documentation

template<class T>
simple_ptr< T >::simple_ptr ( T p = NULL)
inline

Definition at line 23 of file smartptr.h.

template<class T>
simple_ptr< T >::~simple_ptr ( )
inline

Definition at line 24 of file smartptr.h.

Member Data Documentation

template<class T>
T* simple_ptr< T >::m_p

Definition at line 30 of file smartptr.h.


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