11 class test_ScopeGuard;
19 friend class ::test_ScopeGuard;
21 const std::function<void()> mFunction;
30 ScopeGuard(
const std::function<
void()>& pFunc,
bool pEnabled =
true);
void setEnabled(bool pEnabled=true)
Definition: ScopeGuard.cpp:37
~ScopeGuard()
Definition: ScopeGuard.cpp:22
ScopeGuard & operator=(const ScopeGuard &pCopy)=delete
bool isEnabled() const
Definition: ScopeGuard.cpp:31
Definition: ScopeGuard.h:16
ScopeGuard(const ScopeGuard &pCopy)=delete