[#BloombergLP-bdlb-ScopeExitUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::ScopeExitUtil :relfileprefix: ../../ :mrdocs: A utility that provides a factory function for sufficiently function C++11 or later platforms to create scope guards using the type‐deducing `auto` keyword. Notice that the utility type does not exist on C++03 platforms. == Synopsis Declared in `<bdlb_scopeexit.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ScopeExitUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/ScopeExitUtil/makeScopeExit.adoc[`makeScopeExit`] | Return a `ScopeExit` guard that uses the specified `function` as its exit function, and has the decayed type of `function` (class type or or function pointer type) as its exit function member type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#