MCPcopy Create free account
hub / github.com/RenderKit/embree / getInternal

Method getInternal

tutorials/external/catch.hpp:10124–10131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10122 class Singleton : SingletonImplT, public ISingleton {
10123
10124 static auto getInternal() -> Singleton* {
10125 static Singleton* s_instance = nullptr;
10126 if( !s_instance ) {
10127 s_instance = new Singleton;
10128 addSingleton( s_instance );
10129 }
10130 return s_instance;
10131 }
10132
10133 public:
10134 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected