Boost C++ Libraries

PrevUpHomeNext

Class scoped_counter

boost::log::sinks::asynchronous_sink::scoped_counter — A scope guard for automatically updating a counter.

Synopsis

// In header: <boost/log/sinks/async_frontend.hpp>



// A scope guard for automatically updating a counter.

class scoped_counter {
public:

  // public member functions
  explicit scoped_counter(unsigned int &);
  ~scoped_counter();
  scoped_counter(scoped_counter const &) = delete;
  scoped_counter & operator=(scoped_counter const &) = delete;
};

Description

scoped_counter public member functions

  1. explicit scoped_counter(unsigned int & counter);
  2. ~scoped_counter();
  3. scoped_counter(scoped_counter const &) = delete;
  4. scoped_counter & operator=(scoped_counter const &) = delete;

PrevUpHomeNext