36 static T& GetInstance()
38 assert(m_instance !=
nullptr);
42 static T* GetInstancePointer()
44 assert(m_instance !=
nullptr);
48 static bool IsCreated()
50 return m_instance !=
nullptr;
55 assert(m_instance ==
nullptr);
56 m_instance =
static_cast<T *
>(
this);
65 static void ReplaceInstance(T* newInstance)
67 m_instance = newInstance;
Definition: singleton.h:30