:relfileprefix: ../../../
[#C26CF9ED4E5899E9B8E26D81923D0209F3E7E80A]

= Function scope_exit::~scope_exit

pass:v,q[If `active() == true`, and invoking the condition function object returns]
`true,`
pass:v,q[invokes]
pass:v,q[the wrapped callable action function object. Destroys the function objects.]


== Synopsis

Declared in header `<https://github.com/Lastique/scope/blob/develop/include/boost/scope/scope_exit.hpp#L444[boost/scope/scope_exit.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
~scope_exit() noexcept(detail::conjunction<detail::is_nothrow_invocable<Func &>, detail::is_nothrow_invocable<Cond &>>::value);
----

== Description

pass:v,q[**Throws:** Nothing, unless invoking a function object throws.]






