...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::sinks::asynchronous_sink::scoped_flag — A scope guard that resets a flag on destructor.
// In header: <boost/log/sinks/async_frontend.hpp> // A scope guard that resets a flag on destructor. class scoped_flag { public: // construct/copy/destruct explicit scoped_flag(frontend_mutex_type &, condition_variable_any &, volatile bool &); scoped_flag(scoped_flag const &); scoped_flag& operator=(scoped_flag const &); ~scoped_flag(); };