:relfileprefix: ../../../
[#B9BA5C7DEC9B47F5165D31AFD434B0752974E35D]

= Function scope_exit::set_active

pass:v,q[Activates or deactivates the scope guard.]


== Synopsis

Declared in header `<https://github.com/Lastique/scope/blob/develop/include/boost/scope/scope_exit.hpp#L477[boost/scope/scope_exit.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
void
set_active(bool active) noexcept;
----

== Description

pass:v,q[**Throws:** Nothing.]



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *active*
| `bool`

|===



