| 309 | static bool isNull() { return s_singleton == nullptr; } |
| 310 | |
| 311 | static void destroy() { |
| 312 | assert(!s_singleton || s_singleton == (T*)&s_storage); |
| 313 | T* p = s_singleton; |
| 314 | if (p) { |
| 315 | T::Delete(p); |
| 316 | s_singleton = nullptr; |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | T *operator->() const { |
| 321 | return getNoCheck(); |
nothing calls this directly
no test coverage detected