...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::test_tools::assertion_result — Type used for storing the result of an assertion.
// In header: <boost/test/tools/assertion_result.hpp> class assertion_result { public: // member classes/structs/unions struct dummy { // public member functions void nonnull(); }; // public member functions assertion_result(bool); template<typename BoolConvertable> assertion_result(BoolConvertable const &); bool operator!() const; void operator=(bool); operator safe_bool() const; BOOST_READONLY_PROPERTY(bool, (assertion_result)); bool has_empty_message() const; wrap_stringstream & message(); const_string message() const; };
assertion_result
public member functionsassertion_result(bool pv_);
template<typename BoolConvertable> assertion_result(BoolConvertable const & pv_);
bool operator!() const;
void operator=(bool pv_);
operator safe_bool() const;
BOOST_READONLY_PROPERTY(bool, (assertion_result));
bool has_empty_message() const;
wrap_stringstream & message();
const_string message() const;