MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / getInternal

Method getInternal

extras/tests/catch/catch.hpp:12427–12434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12425 class Singleton : SingletonImplT, public ISingleton {
12426
12427 static auto getInternal() -> Singleton* {
12428 static Singleton* s_instance = nullptr;
12429 if( !s_instance ) {
12430 s_instance = new Singleton;
12431 addSingleton( s_instance );
12432 }
12433 return s_instance;
12434 }
12435
12436 public:
12437 static auto get() -> InterfaceT const& {

Callers

nothing calls this directly

Calls 1

addSingletonFunction · 0.85

Tested by

no test coverage detected