Skip to content

Glossary: Software Design Patterns in C++

State machine

Something that is always in exactly one of a fixed set of states, with rules for moving between them. An order can go from `shipped` to `delivered` but not to `cancelled`.

Where the book teaches it

Related terms

TransitionState