libyggdrasil  v1.0.0
bsp::scope_guard::ScopeGuardImpl< F > Class Template Reference

Scope Guard implementation. More...

#include <utils.hpp>

Public Member Functions

constexpr ScopeGuardImpl (F func)
 
 ~ScopeGuardImpl ()
 
void release ()
 Releases the scope guard and prevents it from being executed when going out of scope. More...
 
 ScopeGuardImpl (ScopeGuardImpl &&other) noexcept
 
ScopeGuardImploperator= (ScopeGuardImpl &&)=delete
 

Detailed Description

template<class F>
class bsp::scope_guard::ScopeGuardImpl< F >

Scope Guard implementation.

Constructor & Destructor Documentation

◆ ScopeGuardImpl() [1/2]

template<class F >
constexpr bsp::scope_guard::ScopeGuardImpl< F >::ScopeGuardImpl ( func)
inlineconstexpr

◆ ~ScopeGuardImpl()

template<class F >
bsp::scope_guard::ScopeGuardImpl< F >::~ScopeGuardImpl ( )
inline

◆ ScopeGuardImpl() [2/2]

template<class F >
bsp::scope_guard::ScopeGuardImpl< F >::ScopeGuardImpl ( ScopeGuardImpl< F > &&  other)
inlinenoexcept

Member Function Documentation

◆ operator=()

template<class F >
ScopeGuardImpl& bsp::scope_guard::ScopeGuardImpl< F >::operator= ( ScopeGuardImpl< F > &&  )
delete

◆ release()

template<class F >
void bsp::scope_guard::ScopeGuardImpl< F >::release ( )
inline

Releases the scope guard and prevents it from being executed when going out of scope.


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