Lines Matching refs:SCOPE_EXIT
25 /* scope_exit is a general-purpose scope guard that calls its exit
26 function at the end of the current scope. A scope_exit may be
30 ScopeGuard/SCOPE_EXIT.
41 - If you don't need to cancel the guard, you can use the SCOPE_EXIT
44 SCOPE_EXIT
52 /* CRTP base class for cancelable scope_exit-like classes. Implements
88 /* The scope_exit class. */
91 class scope_exit : public scope_exit_base<scope_exit<EF>>
94 friend scope_exit_base<scope_exit<EF>>;
100 scope_exit (EFP &&f)
116 scope_exit (scope_exit &&rhs)
126 DISABLE_COPY_AND_ASSIGN (scope_exit);
127 void operator= (scope_exit &&) = delete;
140 scope_exit<typename std::decay<EF>::type>
143 return scope_exit<typename std::decay<EF>::type> (std::forward<EF> (f));
152 scope_exit<typename std::decay<EF>::type>
155 return scope_exit<typename std::decay<EF>::type> (std::forward<EF> (rhs));
165 #define SCOPE_EXIT \