[#SCOPE_EXIT]
= SCOPE&lowbar;EXIT
:mrdocs:

Capture code that shall be run when the current scope exits&period;

== Synopsis

Declared in `&lt;folly&sol;ScopeGuard&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define SCOPE&lowbar;EXIT

----

== Description

The code within SCOPE&lowbar;EXIT&apos;s braces shall execute as if the code was in the destructor of an object instantiated at the point of SCOPE&lowbar;EXIT&period;

Variables used within SCOPE&lowbar;EXIT are captured by reference&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
