Skip to content

Glossary: Software Design Patterns in C++

Global state

A shared value any code can change. If one test sets the singleton's `free_shipping_at` to 50, later tests see 50 too.

Where the book teaches it

Related terms

Global mutable stateSingleton