:relfileprefix: ../../ [#DF36361B2D794B348BA4518FCDA3472EF92DE844] = Function make_scope_exit pass:v,q[Creates a scope guard with a given action function object.] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- template xref:boost/scope/scope_exit-0a.adoc[scope_exit]::type> make_scope_exit( F&& func, bool active = true) noexcept(std::is_nothrow_constructible::type>, F, bool>::value); ---- == Description pass:v,q[**Effects:** Constructs a scope guard as if by calling] pass:v,q[`scope_exit] pass:v,q[<] pass:v,q[std::decay_t] pass:v,q[<] pass:v,q[F > >(std::forward] pass:v,q[<] pass:v,q[F >(func), active)`.] == Return Value * `xref:boost/scope/scope_exit-0a.adoc[scope_exit]::type>` == Parameters |=== | Name | Type | *func* | `F&&` | *active* | `bool` |===