[#BloombergLP-bdlb-ScopeExit-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit&lt;bsl::decay&lt;EXIT&lowbar;FUNC&lowbar;PARAM&gt;::type&gt;]
:relfileprefix: ../../
:mrdocs:

Deduce the template parameter `EXIT&lowbar;FUNC` from the type of the callable passed to the constructor of `ScopeExit`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;scopeexit&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class EXIT&lowbar;FUNC&lowbar;PARAM&gt;
xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit&lt;bsl::decay&lt;EXIT&lowbar;FUNC&lowbar;PARAM&gt;::type&gt;](EXIT&lowbar;FUNC&lowbar;PARAM&& function) -> xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit&lt;bsl::decay&lt;EXIT&lowbar;FUNC&lowbar;PARAM&gt;::type&gt;];
----


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