Searched refs:ScopeGuard (Results 1 – 1 of 1) sorted by relevance
32 template <typename F> class ScopeGuard {34 constexpr ScopeGuard(F &&f) : f_(static_cast<F &&>(f)) {} in ScopeGuard() function35 constexpr ScopeGuard(ScopeGuard &&that) noexcept in ScopeGuard() function41 constexpr ScopeGuard(ScopeGuard<Functor> &&that) in ScopeGuard() function46 ~ScopeGuard() { f_(); } in ~ScopeGuard()48 ScopeGuard() = delete;49 ScopeGuard(const ScopeGuard &) = delete;50 void operator=(const ScopeGuard &) = delete;51 void operator=(ScopeGuard &&that) = delete;54 template <typename Functor> friend class ScopeGuard;[all …]
Completed in 5 milliseconds