Searched refs:active_ (Results 1 – 1 of 1) sorted by relevance
29 constexpr ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard()31 constexpr ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()32 that.active_ = false; in ScopeGuard()36 constexpr ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()37 that.active_ = false; in ScopeGuard()41 if (active_) f_(); in ~ScopeGuard()49 void Disable() { active_ = false; } in Disable()51 constexpr bool active() const { return active_; } in active()58 bool active_; variable