Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::ScopeGuard< Func > Class Template Reference

Run a function when the scope is exited. More...

#include <ScopeGuard.hpp>

Public Member Functions

 ScopeGuard (ScopeGuard const &)=delete
 
 ScopeGuard (ScopeGuard &&)=delete
 
ScopeGuardoperator= (ScopeGuard const &)=delete
 
ScopeGuardoperator= (ScopeGuard &&)=delete
 
 ScopeGuard (Func func)
 Create ScopeGuard object.
 

Detailed Description

template<typename Func>
class util::ScopeGuard< Func >

Run a function when the scope is exited.

Constructor & Destructor Documentation

◆ ScopeGuard()

template<typename Func >
util::ScopeGuard< Func >::ScopeGuard ( Func func)
inline

Create ScopeGuard object.

Parameters
funcThe function to run when the scope is exited.

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