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 an older version of Boost and was released in 2020. The current version is 1.89.0.
boost::signals2::slot_base — Base class for slots.
// In header: <boost/signals2/slot_base.hpp> class slot_base { public: // types typedef std::vector<implementation-detail> locked_container_type; // tracking bool expired() const; locked_container_type lock() const; };
slot_base trackingbool expired() const;
Returns: |
|
locked_container_type lock() const;
Returns: |
A container holding shared_ptrs to each of the slot's tracked objects. As long
as the returned container is kept in scope, none of the slot's tracked objects can expire. |
Throws: |
expired_slot if any of the slot's tracked objects have expired. |