Skip to content

Glossary: Software Design Patterns in C++

Global mutable state

A global variable that any code can change, like the old global `orders` vector. It makes behavior hard to predict and tests depend on each other.

Where the book teaches it

Related terms

Global stateSingleton