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 sentry

boost::log::basic_formatting_ostream::sentry

Synopsis

// In header: <boost/log/utility/formatting_ostream.hpp>



class sentry : public sentry {
public:
  // construct/copy/destruct
  explicit sentry(basic_formatting_ostream &);
  sentry(sentry const &) = delete;
  sentry & operator=(sentry const &) = delete;

  // public member functions
  explicit operator bool() const;
  bool operator!() const;
};

Description

sentry public construct/copy/destruct

  1. explicit sentry(basic_formatting_ostream & strm);
  2. sentry(sentry const &) = delete;
  3. sentry & operator=(sentry const &) = delete;

sentry public member functions

  1. explicit operator bool() const;
  2. bool operator!() const;

PrevUpHomeNext