MCPcopy Create free account
hub / github.com/pybind/pybind11 / cleanupAllInstances

Method cleanupAllInstances

tests/test_smart_ptr.cpp:168–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 int value;
167
168 static void cleanupAllInstances() {
169 auto tmp = std::move(pointer_set<MyObject4a>());
170 pointer_set<MyObject4a>().clear();
171 for (auto *o : tmp) {
172 delete o;
173 }
174 }
175
176protected:
177 virtual ~MyObject4a() {

Callers

nothing calls this directly

Calls 2

moveFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected