33 template <
class FUNCTOR>
48 assert((*item.first).notifier_ ==
this);
50 (*item.first).notifier_ =
nullptr;
notifier< functor_t > * notifier_
Pointer the the notifier that's linked to us.
Helper class to implement callbacks with lifetime management.
const std::map< notifiee< functor_t > *, functor_t > & notifiees() const
void disconnect_notifiee(notifiee< functor_t > &target)
Disconnects a callback.
std::map< notifiee< functor_t > *, functor_t > notifiees_
List of registered callbacks.
void connect_notifiee(notifiee< functor_t > &target, functor_t functor)
Connects a callback.