Lines Matching refs:ScopeGuard
27 class ScopeGuard {
29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard() function
31 ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function
36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function
40 ~ScopeGuard() { in ~ScopeGuard()
44 ScopeGuard() = delete;
45 ScopeGuard(const ScopeGuard&) = delete;
46 void operator=(const ScopeGuard&) = delete;
47 void operator=(ScopeGuard&& that) = delete;
55 friend class ScopeGuard;
62 ScopeGuard<F> make_scope_guard(F&& f) { in make_scope_guard()
63 return ScopeGuard<F>(std::forward<F>(f)); in make_scope_guard()