Ethereum  PoC-8
The C++ Implementation of Ethereum
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 ()
 

Detailed Description

RAII utility class whose destructor calls a given function.

Definition at line 199 of file Common.h.

Constructor & Destructor Documentation

◆ ScopeGuard()

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

Definition at line 202 of file Common.h.

◆ ~ScopeGuard()

dev::ScopeGuard::~ScopeGuard ( )
inline

Definition at line 203 of file Common.h.


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