Lines Matching refs:ScopeGuard
24 class ScopeGuard {
26 ScopeGuard(Func &&f) : func_(std::forward<Func>(f)), active_(true)
30 ScopeGuard(ScopeGuard &&rhs) : func_(std::move(rhs.func)), active_(rhs.active_)
35 ~ScopeGuard()
62 ScopeGuard() = delete;
63 ScopeGuard(const ScopeGuard &) = delete;
64 ScopeGuard &operator=(const ScopeGuard &) = delete;
65 ScopeGuard &operator=(ScopeGuard &&) = delete;
72 inline ScopeGuard<Func> operator+(ScopeGuardOnExit, Func &&fn)
74 return ScopeGuard<Func>(std::forward<Func>(fn));
81 * ScopeGuard ensure the specified function which is created by ON_SCOPE_EXIT is executed no matter how the current