https://github.com/levongh/singleton
The singleton pattern is a software design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.
https://github.com/levongh/singleton
Last synced: about 1 year ago
JSON representation
The singleton pattern is a software design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.
- Host: GitHub
- URL: https://github.com/levongh/singleton
- Owner: levongh
- Created: 2016-10-01T20:17:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T05:57:59.000Z (about 8 years ago)
- Last Synced: 2025-02-09T09:12:34.301Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Intent:
Ensure a class has only one instance, and provide a global point of access to it.
Encapsulate "just-in-time" or "initialization on first use"
The Problem:
Application needs one, and only one, instance of an object.
Additionaly, lazy initialization and blobal access are necessary