Searched defs:scope_exit (Results 1 – 4 of 4) sorted by relevance
238 struct scope_exit { struct240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {} in scope_exit() argument241 ~scope_exit() { if (f_) f_(); } in ~scope_exit() argument
31 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit() function33 scope_exit(scope_exit &&Rhs) in scope_exit() function
392 auto scope_exit = llvm::make_scope_exit([&] { in runPipeline() local