# std::experimental::scope_exit<EF>::~scope_exit

From cppreference.com
< cpp‎ | experimental‎ | scope exit

~scope_exit() noexcept; |  | (library fundamentals TS v3)

Calls the exit function if the `scope_exit` is active, then destroys the stored `EF` (if it is a function object) and any other non-static data members.

### See also

release | makes the `scope_exit` inactive (public member function)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/scope_exit/%7Escope_exit&oldid=115114"