Searched refs:ExitFunction (Results 1 – 3 of 3) sorted by relevance
26 Callable ExitFunction; variable31 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit()34 : ExitFunction(std::move(Rhs.ExitFunction)), Engaged(Rhs.Engaged) { in scope_exit()45 ExitFunction(); in ~scope_exit()
84 typedef ExitFunction = void Function(int exitCode);86 const ExitFunction _defaultExitFunction = io.exit;88 ExitFunction _exitFunction = _defaultExitFunction;97 ExitFunction get exit => _exitFunction;102 void setExitFunctionForTests([ ExitFunction exitFunction ]) {
97184 template <typename ExitFunction>97186 ExitFunction mExitFunction;97191 explicit ScopeExit(ExitFunction&& cleanup in ScopeExit()97222 template <typename ExitFunction>97223 ScopeExit<ExitFunction>97224 MakeScopeExit(ExitFunction&& exitFunction) in MakeScopeExit()97226 return ScopeExit<ExitFunction>(mozilla::Move(exitFunction)); in MakeScopeExit()