This utility class maintains pointers containing the addresses of functions invoked by the BSLS_PRECONDITIONS_BEGIN and BSLS_PRECONDITIONS_END macros, and provides methods to manipulate and utilize those functions.
Declared in <bsls_preconditions.h>
class PreconditionsHandler;
| Name | Description |
|---|---|
PreconditionHandlerType | PreconditionHandlerType is an alias for a pointer to a function returning void and taking no parameters. |
| Name | Description |
|---|---|
getBeginHandler | Return the previously installed s_beginHandler. |
getEndHandler | Return the previously installed s_endHandler. |
installHandlers | Store the specified beginHandler and endHandler function pointers to the static member variables. |
invokeBeginHandler | Invoke the previously installed s_beginHandler function. |
invokeEndHandler | Invoke the previously installed s_endHandler function. |
noOpHandler | Do nothing. |