:relfileprefix: ../../
[#E5C768D08F8D9918A0F737984003E479DB311598]

= Function make_scope_fail



== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<
    typename F,
    typename C>
enable_if<detail::is_invocable<const C &>::value, xref:boost/scope/scope_fail-04.adoc[scope_fail]<decay<F>::type, decay<C>::type>>::type
make_scope_fail(
    F&& func,
    C&& cond,
    bool active = true) noexcept(std::is_nothrow_constructible<scope_fail<typename std::decay<F>::type, typename std::decay<C>::type>, F, C, bool>::value);
----

