:relfileprefix: ../../
[#9010F04689A5A89ACE45416BDC344A9C535C7DA0-make_scope_fail]

= Overload set make_scope_fail

== Members


pass:v,q[Creates a scope fail guard with a given action function object.]


[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename F>
xref:boost/scope/scope_fail-04.adoc[scope_fail]<decay<F>::type>
make_scope_fail(
    F&& func,
    bool active = true) noexcept(std::is_nothrow_constructible<scope_fail<typename std::decay<F>::type>, F, bool>::value);
  xref:boost/scope/make_scope_fail-07.adoc[pass:c,q,m[*_» more..._*]]
----




[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);
  xref:boost/scope/make_scope_fail-0e.adoc[pass:c,q,m[*_» more..._*]]
----

