Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::ScopeGuard Class Reference

RAII utility class whose destructor calls a given function. More...

#include <Common.h>

Public Member Functions

 ScopeGuard (std::function< void(void)> _f)
 
 ~ScopeGuard ()
 

Private Attributes

std::function< void(void)> m_f
 

Detailed Description

RAII utility class whose destructor calls a given function.

Definition at line 218 of file Common.h.

Constructor & Destructor Documentation

dev::ScopeGuard::ScopeGuard ( std::function< void(void)>  _f)
inline

Definition at line 221 of file Common.h.

dev::ScopeGuard::~ScopeGuard ( )
inline

Definition at line 222 of file Common.h.

Member Data Documentation

std::function<void(void)> dev::ScopeGuard::m_f
private

Definition at line 225 of file Common.h.


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