Searched refs:scope_exit (Results 1 – 3 of 3) sorted by relevance
26 template <typename Callable> class scope_exit {32 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit() function34 scope_exit(scope_exit &&Rhs) in scope_exit() function38 scope_exit(const scope_exit &) = delete;39 scope_exit &operator=(scope_exit &&) = delete;40 scope_exit &operator=(const scope_exit &) = delete;44 ~scope_exit() { in ~scope_exit()58 [[nodiscard]] detail::scope_exit<std::decay_t<Callable>>60 return detail::scope_exit<std::decay_t<Callable>>(std::forward<Callable>(F)); in make_scope_exit()
755 struct scope_exit { struct756 explicit scope_exit(Cleanup const& cleanup) : cleanup_(cleanup) {} in scope_exit() argument758 ~scope_exit() { cleanup_(); } in ~scope_exit() argument763 _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(scope_exit);780 scope_exit close_stream([=] { ::closedir(stream); }); in remove_all_impl()
766 std::optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()773 std::optional<llvm::detail::scope_exit<std::function<void()>>> buffer_cleanup; in DoLoadImage()