## Function template make_scope_exit

boost::scope::make_scope_exit — Creates a scope guard with a given action function object.

## Synopsis

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

    template<typename F>
      scope_exit< typename std::decay< F >::type >
      make_scope_exit(F && func, bool active = true);

## Description

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

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