27template <
typename TLambda>
38 moved.m_committed =
true;
60template <
typename TLambda>
Definition: scope_guard.h:28
void rollback()
Definition: scope_guard.h:48
void commit()
Definition: scope_guard.h:46
Scope_guard(Scope_guard< TLambda > &&moved)
Definition: scope_guard.h:33
bool m_committed
Definition: scope_guard.h:56
const TLambda m_rollback_lambda
Definition: scope_guard.h:57
Scope_guard(const Scope_guard< TLambda > &)=delete
~Scope_guard()
Definition: scope_guard.h:40
Scope_guard(const TLambda &rollback_lambda)
Definition: scope_guard.h:30
Template class to scope guard variables.
Definition: scope_guard.h:69
T & m_var_ref
Definition: scope_guard.h:83
Variable_scope_guard(Variable_scope_guard &&)=delete
Variable_scope_guard & operator=(const Variable_scope_guard &)=delete
Variable_scope_guard & operator=(Variable_scope_guard &&)=delete
T m_var_val
Definition: scope_guard.h:84
Variable_scope_guard(const Variable_scope_guard &)=delete
Variable_scope_guard(T &var)
Definition: scope_guard.h:72
Variable_scope_guard()=delete
~Variable_scope_guard()
Definition: scope_guard.h:80
Scope_guard< TLambda > create_scope_guard(const TLambda rollback_lambda)
Definition: scope_guard.h:61