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

Method getInternal

external/catch.hpp:12418–12425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12416 class Singleton : SingletonImplT, public ISingleton {
12417
12418 static auto getInternal() -> Singleton* {
12419 static Singleton* s_instance = nullptr;
12420 if( !s_instance ) {
12421 s_instance = new Singleton;
12422 addSingleton( s_instance );
12423 }
12424 return s_instance;
12425 }
12426
12427 public:
12428 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected