Ring Daemon 16.0.0
Loading...
Searching...
No Matches
dev::ScopeGuard Class Reference

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

#include <Common.h>

Collaboration diagram for dev::ScopeGuard:
Collaboration graph

Public Member Functions

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

Detailed Description

RAII utility class whose destructor calls a given function.

Definition at line 99 of file libdevcore/Common.h.

Constructor & Destructor Documentation

◆ ScopeGuard()

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

Definition at line 102 of file libdevcore/Common.h.

◆ ~ScopeGuard()

dev::ScopeGuard::~ScopeGuard ( )
inline

Definition at line 105 of file libdevcore/Common.h.


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