[#BloombergLP-bsls-PreconditionsHandler] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::PreconditionsHandler :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bsls_preconditions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class PreconditionsHandler; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/PreconditionsHandler/PreconditionHandlerType.adoc[`PreconditionHandlerType`] | `PreconditionHandlerType` is an alias for a pointer to a function returning `void` and taking no parameters. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/PreconditionsHandler/getBeginHandler.adoc[`getBeginHandler`] | Return the previously installed `s_beginHandler`. | xref:BloombergLP/bsls/PreconditionsHandler/getEndHandler.adoc[`getEndHandler`] | Return the previously installed `s_endHandler`. | xref:BloombergLP/bsls/PreconditionsHandler/installHandlers.adoc[`installHandlers`] | Store the specified `beginHandler` and `endHandler` function pointers to the `static` member variables. | xref:BloombergLP/bsls/PreconditionsHandler/invokeBeginHandler.adoc[`invokeBeginHandler`] | Invoke the previously installed `s_beginHandler` function. | xref:BloombergLP/bsls/PreconditionsHandler/invokeEndHandler.adoc[`invokeEndHandler`] | Invoke the previously installed `s_endHandler` function. | xref:BloombergLP/bsls/PreconditionsHandler/noOpHandler.adoc[`noOpHandler`] | Do nothing. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#