[#BloombergLP-bdlb-ScopeExit-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit<bsl::decay<EXIT_FUNC_PARAM>::type>] :relfileprefix: ../../ :mrdocs: Deduce the template parameter `EXIT_FUNC` from the type of the callable passed to the constructor of `ScopeExit`. == Synopsis Declared in `<bdlb_scopeexit.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class EXIT_FUNC_PARAM> xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit<bsl::decay<EXIT_FUNC_PARAM>::type>](EXIT_FUNC_PARAM&& function) -> xref:BloombergLP/bdlb/ScopeExit-0e.adoc[ScopeExit<bsl::decay<EXIT_FUNC_PARAM>::type>]; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#