MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getInternal

Method getInternal

extlibs/catch/include/catch/catch.hpp:11887–11894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11885 class Singleton : SingletonImplT, public ISingleton {
11886
11887 static auto getInternal() -> Singleton* {
11888 static Singleton* s_instance = nullptr;
11889 if( !s_instance ) {
11890 s_instance = new Singleton;
11891 addSingleton( s_instance );
11892 }
11893 return s_instance;
11894 }
11895
11896 public:
11897 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected