5namespace acheron::ecs {
19 static void Set(
const T& value) {
31 assert(initialized() &&
"Singleton not set");
48 static T& instance() {
56 static bool& initialized() {
57 static bool flag =
false;
Interal storage wrapper for singletons.
Definition singleton.hpp:12
static bool IsSet()
Check if the singleton is set.
Definition singleton.hpp:40
static void Set(const T &value)
Initializes singleton and sets the instance value.
Definition singleton.hpp:19
static T & Get()
Get the instance of a singleton.
Definition singleton.hpp:30