Searched refs:ScopeGuard (Results 1 – 1 of 1) sorted by relevance
26 class ScopeGuard {28 ScopeGuard(F f) : f_(f), active_(true) {} in ScopeGuard() function30 ScopeGuard(ScopeGuard&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function34 ~ScopeGuard() { in ~ScopeGuard()38 ScopeGuard() = delete;39 ScopeGuard(const ScopeGuard&) = delete;40 void operator=(const ScopeGuard&) = delete;41 void operator=(ScopeGuard&& that) = delete;53 ScopeGuard<T> make_scope_guard(T f) { in make_scope_guard()54 return ScopeGuard<T>(f); in make_scope_guard()