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 an old version of boost. Click here for the latest Boost documentation.
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();
  };
  // construct/copy/destruct
  assertion_result(bool);
  template<typename BoolConvertable> assertion_result(BoolConvertable const &);
  void operator=(bool);

  // public member functions
  bool operator!() const;
  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 construct/copy/destruct

  1. assertion_result(bool pv_);
  2. template<typename BoolConvertable> 
      assertion_result(BoolConvertable const & pv_);
  3. void operator=(bool pv_);

assertion_result public member functions

  1. bool operator!() const;
  2. operator safe_bool() const;
  3.  BOOST_READONLY_PROPERTY(bool, (assertion_result));
  4. bool has_empty_message() const;
  5. wrap_stringstream & message();
  6. const_string message() const;

PrevUpHomeNext