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

Method cleanupAllInstances

tests/test_smart_ptr.cpp:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 int value;
139
140 static void cleanupAllInstances() {
141 auto tmp = std::move(pointer_set<MyObject4>());
142 pointer_set<MyObject4>().clear();
143 for (auto *o : tmp) {
144 delete o;
145 }
146 }
147
148private:
149 ~MyObject4() {

Callers

nothing calls this directly

Calls 2

moveFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected