MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / getInternal

Method getInternal

tests/catch.hpp:9866–9873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9864 class Singleton : SingletonImplT, public ISingleton {
9865
9866 static auto getInternal() -> Singleton* {
9867 static Singleton* s_instance = nullptr;
9868 if( !s_instance ) {
9869 s_instance = new Singleton;
9870 addSingleton( s_instance );
9871 }
9872 return s_instance;
9873 }
9874
9875 public:
9876 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected