BloombergLP::bdlb::ScopeExit<bsl::decay<EXIT_FUNC_PARAM>::type>

Deduce the template parameter EXIT_FUNC from the type of the callable passed to the constructor of ScopeExit.

Synopsis

Declared in <bdlb_scopeexit.h>

template<class EXIT_FUNC_PARAM>
ScopeExit<bsl::decay<EXIT_FUNC_PARAM>::type>(EXIT_FUNC_PARAM&& function) -> ScopeExit<bsl::decay<EXIT_FUNC_PARAM>::type>;