Skip to content

Glossary: Software Design Patterns in C++

Listener

Also written: listeners, subscriber

A function that wants to hear about an event and is called when the event is emitted. `send_email` and `log_sale` listen for 'order_placed'.

Where the book teaches it

Related terms

ObserverSubjectevent bus