...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::signals::scoped_connection — Limits a signal-slot connection lifetime to a particular scope.
// In header: <boost/signals/connection.hpp> class scoped_connection : private noncopyable // Exposition only { public: // construct/copy/destruct scoped_connection(const connection&); ~scoped_connection(); // connection management void disconnect() const; bool connected() const; };
scoped_connection
public
construct/copy/destructscoped_connection(const connection& other);
Effects: |
|
Throws: |
Will not throw. |
~scoped_connection();
Effects: |
If
|