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

Function getSingletons

tutorials/external/catch.hpp:11153–11158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11151
11152 namespace {
11153 static auto getSingletons() -> std::vector<ISingleton*>*& {
11154 static std::vector<ISingleton*>* g_singletons = nullptr;
11155 if( !g_singletons )
11156 g_singletons = new std::vector<ISingleton*>();
11157 return g_singletons;
11158 }
11159 }
11160
11161 ISingleton::~ISingleton() {}

Callers 2

addSingletonFunction · 0.85
cleanupSingletonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected