Searched refs:ScopeGuard (Results 1 – 1 of 1) sorted by relevance
26 template<typename ExitAction> class ScopeGuard {28 ScopeGuard(ExitAction &&action) : action_(action), enable_(true) {} in ScopeGuard() function29 ~ScopeGuard() in ~ScopeGuard()48 static inline ScopeGuard<ExitAction> operator + (ScopeExitGuardHelper, ExitAction &&action)50 return ScopeGuard<ExitAction>(std::forward<ExitAction>(action));