Abort after logging a message for the specified assertion violation.

Synopsis

Declared in <bsls_assert.h>

[[noreturn]]
static
void
failByAbort(AssertViolation const& violation);

Description

(Default Handler) Emulate the invocation of the standard assert macro with a false argument, using the expression comment, file name, and line number from the specified violation to generate a helpful output message and then, after logging, unconditionally aborting. Note that this handler function is the default installed assertion handler.

Return Value

Note

This function does not return.

Parameters

Name

Description

violation

details of the failed assertion

Created with MrDocs