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

Function cleanupSingletons

tutorials/external/catch.hpp:11166–11172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11164 getSingletons()->push_back( singleton );
11165 }
11166 void cleanupSingletons() {
11167 auto& singletons = getSingletons();
11168 for( auto singleton : *singletons )
11169 delete singleton;
11170 delete singletons;
11171 singletons = nullptr;
11172 }
11173
11174} // namespace Catch
11175// end catch_singletons.cpp

Callers 1

cleanUpFunction · 0.85

Calls 1

getSingletonsFunction · 0.85

Tested by

no test coverage detected