Design Pattern
Singleton
The singleton pattern is a Design Pattern used in Object-Oriented Programming that restricts the instantiation of a class to one “single” instance.
This is useful in certain applications.
https://refactoring.guru/design-patterns/singleton
Naive Singleton (not safe with threading (C++))
Thread-Safe Singleton