Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 74c5a9a29c.

Function exit_invariant_failure

boost::contract::exit_invariant_failure — Call failure handler for class invariants at exit.


// In header: <boost/contract/core/exception.hpp>

void exit_invariant_failure(from where);


This is often called only internally by this library.

Throws: This can throw in case programmers specify a failure handler that throws exceptions on contract assertion failures (not the default).

See Also:

Throw on Failure, Class Invariants, Volatile Public Functions



Operation that failed the contract assertion (e.g., this might be useful to program failure handler functors that never throw from destructors, not even when they are programmed by users to throw exceptions instead of terminating the program).