## Function template make_scope_success

boost::scope::make_scope_success — Creates a scope fail with given callable function objects.

## Synopsis

    // In header: <boost/scope/scope_success.hpp>

    template<typename F, typename C>
      scope_success< typename std::decay< F >::type, typename std::decay< C >::type >
      make_scope_success(F && func, C && cond, bool active = true);

## Description

Effects: Constructs a scope guard as if by calling `scope_success< std::decay_t< F >, std::decay_t< C > >( std::forward< F >(func), std::forward< C >(cond), active)`.

Parameters: |
`func` | The callable action function object to invoke on destruction.
`cond` | The callable failure condition function object.
`active` | Indicates whether the scope guard should be active upon construction.