This column discusses implementations of the Observer pattern (as described by the Gang of Four). The approach I take is similar to that of Modern C++ Design: First discuss the pattern itself, identifying its key points of customization—the places in which there is a design decision to be made. Then, I abstract the thusly discovered points of customization into policies, and assemble a generic Observer framework from those policies.
展开▼