:relfileprefix: ../../
[#9B01F3F82040ECC3EBF5DA13A4D42AC9B09C3CBB]

= Function make_scope_exit



== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<
    typename F,
    typename C>
enable_if<std::is_constructible<scope_exit<typename std::decay<F>::type, typename std::decay<C>::type>, F, C, bool>::value, xref:boost/scope/scope_exit-0a.adoc[scope_exit]<decay<F>::type, decay<C>::type>>::type
make_scope_exit(
    F&& func,
    C&& cond,
    bool active = true) noexcept(std::is_nothrow_constructible<scope_exit<typename std::decay<F>::type, typename std::decay<C>::type>, F, C, bool>::value);
----

