Sen API
Sen Libraries
Loading...
Searching...
No Matches
sen::ScopeGuard< F > Class Template Reference

Runs the function object F on destruction. More...

#include <scope_guard.h>

Public Member Functions

 ScopeGuard ()=delete
 ~ScopeGuard () noexcept
 Will trigger the given callback.

Friends

template<class InputF>
auto makeScopeGuard (InputF &&f)

Detailed Description

template<typename F>
class sen::ScopeGuard< F >

Runs the function object F on destruction.

Constructor & Destructor Documentation

◆ ScopeGuard()

template<typename F>
sen::ScopeGuard< F >::ScopeGuard ( )
delete

◆ ~ScopeGuard()

template<typename F>
sen::ScopeGuard< F >::~ScopeGuard ( )
inlinenoexcept

Will trigger the given callback.

◆ makeScopeGuard

template<typename F>
template<class InputF>
auto makeScopeGuard ( InputF && f)
friend

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