Provided for convenience.
More...
#include <utils/Singleton.h>
template<typename T>
class mira::ExplicitSingleton< T >
Provided for convenience.
This is equivalent to Singleton<T, singleton::ExplicitInstantiation>.
◆ Type
◆ instance()
static Type& instance |
( |
| ) |
|
|
inlinestaticinherited |
Returns a reference to the singleton instance.
- Exceptions
-
XSingleton | If the singleton was already destroyed (dead reference) or not yet created (when using ExplicitInstantiation). |
◆ isDestroyed()
static bool isDestroyed |
( |
| ) |
|
|
inlinestaticinherited |
Returns true, if the singleton was already destroyed.
Trying to access it will result in an exception.
The documentation for this class was generated from the following file: