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)
119 scope_exit (scope_exit &&rhs)
129 DISABLE_COPY_AND_ASSIGN (scope_exit);
130 void operator= (scope_exit &&) = delete;
143 scope_exit<typename std::decay<EF>::type>
146 return scope_exit<typename std::decay<EF>::type> (std::forward<EF> (f));
155 scope_exit<typename std::decay<EF>::type>
158 return scope_exit<typename std::decay<EF>::type> (std::forward<EF> (rhs));
168 #define SCOPE_EXIT \