![]() |
|
Uniot Core
|
| 0.8.1 |
Template class implementing the Singleton design pattern. More...
Classes | |
| class | uniot::Singleton< Derived > |
Template class implementing the Singleton design pattern.
The Singleton template ensures that a class has only one instance and provides a global point of access to it. This implementation uses the Curiously Recurring Template Pattern (CRTP) where the derived class passes itself as a template parameter.
| Derived | The class that will become a Singleton |
Usage example: