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 an old version of Boost. Click here to view this page for the latest version.

Function check_failure

boost::contract::check_failure — Call failure handler for implementation checks.


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

void check_failure();


This is often called only internally by this library.

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

See Also:

Throw on Failure, Implementation Checks