Home | Libraries | People | FAQ | More |
BOOST_CONTRACT_CHECK_AXIOM — Preferred way to assert implementation check conditions that are computationally prohibitive, at least compared to the cost of executing the function body.
// In header: <boost/contract/core/check_macro.hpp>
BOOST_CONTRACT_CHECK_AXIOM(cond)
The specified condition will always be compiled and validated syntactically, but it will never be evaluated at run-time. This macro is defined by code equivalent to:
#define BOOST_CONTRACT_CHECK_AXIOM(cond) \ BOOST_CONTRACT_CHECK(true || cond)
BOOST_CONTRACT_CHECK
, BOOST_CONTRACT_CHECK_AUDIT
, and BOOST_CONTRACT_CHECK_AXIOM
are the three assertion levels predefined by this library for implementation checks. If there is a need, programmers are free to implement their own assertion levels defining macros similar to the one above.
See Also:
Parameters: |
|