Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::vm::scope_guard< F > Struct Template Reference

#include <utils.hpp>

Public Member Functions

 scope_guard (F &&f)
 
 ~scope_guard ()
 
 scope_guard (F &&f)
 
 ~scope_guard ()
 

Public Attributes

_f
 

Detailed Description

template<typename F>
struct sysio::vm::scope_guard< F >

Definition at line 94 of file utils.hpp.

Constructor & Destructor Documentation

◆ scope_guard() [1/2]

template<typename F >
sysio::vm::scope_guard< F >::scope_guard ( F && f)
inline

Definition at line 95 of file utils.hpp.

95: _f(static_cast<F&&>(f)) {}

◆ ~scope_guard() [1/2]

template<typename F >
sysio::vm::scope_guard< F >::~scope_guard ( )
inline

Definition at line 96 of file utils.hpp.

96{ _f(); }

◆ scope_guard() [2/2]

template<typename F >
sysio::vm::scope_guard< F >::scope_guard ( F && f)
inline

Definition at line 95 of file utils.hpp.

95: _f(static_cast<F&&>(f)) {}

◆ ~scope_guard() [2/2]

template<typename F >
sysio::vm::scope_guard< F >::~scope_guard ( )
inline

Definition at line 96 of file utils.hpp.

96{ _f(); }

Member Data Documentation

◆ _f

template<typename F >
F sysio::vm::scope_guard< F >::_f

Definition at line 97 of file utils.hpp.


The documentation for this struct was generated from the following files: