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

PrevUpHomeNext

Class assertion_result

boost::test_tools::assertion_result — Type used for storing the result of an assertion.

Synopsis

// 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;
};

Description

assertion_result public member functions

  1. assertion_result(bool pv_);
  2. template<typename BoolConvertable> 
      assertion_result(BoolConvertable const & pv_);
  3. bool operator!() const;
  4. void operator=(bool pv_);
  5. operator safe_bool() const;
  6.  BOOST_READONLY_PROPERTY(bool, (assertion_result));
  7. bool has_empty_message() const;
  8. wrap_stringstream & message();
  9. const_string message() const;

PrevUpHomeNext