Boost C++ Libraries

...one 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 master branch, built from commit c0bc0d89c9.
PrevUpHomeNext

Function set_check_failure

boost::contract::set_check_failure — Set failure handler for implementation checks.

Synopsis

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


failure_handler const  & set_check_failure(failure_handler const & f);

Description

Set a new failure handler and returns it.

Throws: This is declared noexcept (or throw() before C++11).

See Also:

Throw on Failure, Implementation Checks

Parameters:

f

New failure handler functor to set.

Returns:

Same failure handler functor f passed as parameter (e.g., for concatenating function calls).


PrevUpHomeNext