Coordinating and Traversing
Observer and Mediator, Chain of Responsibility and Iterator with ranges, and Visitor, Memento, and Interpreter.
Observer and Mediator
Two coordination patterns for a many-party system, taught against a shipment tracker and a warehouse dispatch board: Observer fans a status change out to independently subscribed listeners, from a classic interface down to a lightweight std::function callback, and Mediator centralizes a many-to-many conversation behind one hub so a warehouse, a carrier, and a notification service never reference each other directly.
Chain of Responsibility and Iterator
Two patterns for coordinating a collection of objects rather than one: Chain of Responsibility routes a request through a sequence of handlers until one of them acts, and Iterator provides sequential access to an aggregate without exposing its internal structure, taught with a shipment-approval chain and a zone-bucketed package manifest, including the C++20 ranges form of traversal.
Visitor, Memento, and Interpreter
Three patterns for a fixed shipping-filter rule tree: Visitor adds operations over the tree two idiomatic ways, the classic GoF double dispatch and a std::variant plus std::visit, Interpreter walks the same tree to evaluate a small filter grammar, and Memento snapshots and restores a whole draft rule set in one call.