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>

class PreconditionsHandler;

Type Aliases

Name

Description

PreconditionHandlerType

PreconditionHandlerType is an alias for a pointer to a function returning void and taking no parameters.

Static Member Functions

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.

Created with MrDocs