MCPcopy Create free account
hub / github.com/Profactor/cv-plot / getInternal

Method getInternal

CvPlot/ext/catch2/inc/catch.hpp:12272–12279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12270 class Singleton : SingletonImplT, public ISingleton {
12271
12272 static auto getInternal() -> Singleton* {
12273 static Singleton* s_instance = nullptr;
12274 if( !s_instance ) {
12275 s_instance = new Singleton;
12276 addSingleton( s_instance );
12277 }
12278 return s_instance;
12279 }
12280
12281 public:
12282 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected