BloombergLP::bdlb::ScopeExitUtil

Utility providing a factory for type-deduced ScopeExit guards.

Synopsis

Declared in <bdlb_scopeexit.h>

struct ScopeExitUtil;

Description

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.

Static Member Functions

NameDescription
makeScopeExit Return a ScopeExit guard that invokes function on destruction.