...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::contract::set_invariant_failure — Set failure handler for class invariants (at both entry and exit).
// In header: <boost/contract/core/exception.hpp> from_failure_handler const & set_invariant_failure(from_failure_handler const & f);
This is provided for convenience and it is equivalent to call both
and boost::contract::set_entry_invariant_failure
with the same functor parameter boost::contract::set_exit_invariant_failure
f
.
Throws: This is declared noexcept
(or throw()
before C++11).
See Also:
Throw on Failure, Class Invariants, Volatile Public Functions
Parameters: |
|
||
Returns: |
Same failure handler functor |