Synopsis

Declared in header <boost/scope/scope_fail.hpp>

template<
    typename F,
    typename C>
enable_if<detail::is_invocable<const C &>::value, 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);