libyggdrasil  v1.0.0
bsp::scope_guard Namespace Reference

Classes

class  ScopeGuardImpl
 Scope Guard implementation. More...
 

Enumerations

enum  ScopeGuardOnExit
 

Functions

template<typename F >
constexpr ScopeGuardImpl< F > operator+ (ScopeGuardOnExit, F &&f)
 

Enumeration Type Documentation

◆ ScopeGuardOnExit

Function Documentation

◆ operator+()

template<typename F >
constexpr ScopeGuardImpl<F> bsp::scope_guard::operator+ ( ScopeGuardOnExit  ,
F &&  f 
)
constexpr

Helper operator overload to easily generate a scope guard