Scroll to navigation

std::experimental::scope_exit::~scope_exit(3) C++ Standard Libary std::experimental::scope_exit::~scope_exit(3)

NAME

std::experimental::scope_exit::~scope_exit - std::experimental::scope_exit::~scope_exit

Synopsis

~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)

2026.11.10 http://cppreference.com