Skip to content

Glossary: Software Design Patterns in C++

Chain of responsibility

Also written: chain

A pattern where a request passes along a line of handlers, and each handles it (for example by rejecting it) or passes it on. Kettle & Crane's order checks run this way, stopping at the first problem.

Where the book teaches it

Related terms

HandlerMiddlewarestd::optional