|
Acheron
|
Interal storage wrapper for singletons. More...
#include <singleton.hpp>
Static Public Member Functions | |
| static void | Set (const T &value) |
| Initializes singleton and sets the instance value. | |
| static T & | Get () |
| Get the instance of a singleton. | |
| static bool | IsSet () |
| Check if the singleton is set. | |
Interal storage wrapper for singletons.
| The | type of the singleton |
|
inlinestatic |
Get the instance of a singleton.
| Assert | Fail if the singleton isnt set |
|
inlinestatic |
Check if the singleton is set.
|
inlinestatic |
Initializes singleton and sets the instance value.
| value | The value of the singleton |