BloombergLP::bslstl::StdExceptUtil::setUnderflowErrorHook

Set the pre-throw hook for std::underflow_error to the specified hook.

Synopsis

Declared in <bslstl_stdexceptutil.h>

static
void
setUnderflowErrorHook(PreThrowHook hook);

Description

If hook is passed 0, or if the settor was never called, that means that no pre-throw function will be called.

Parameters

NameDescription
hookpre-throw callback; null disables the hook