MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / CustomDeleter

Class CustomDeleter

tests/unit_test/sk_unique_ptr_test.cpp:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 custom_delete_count = 0;
158
159 struct CustomDeleter {
160 auto operator()(TestObj* ptr) const noexcept -> void {
161 ++custom_delete_count;
162 delete ptr;
163 }
164 };
165
166 {
167 kstd::unique_ptr<TestObj, CustomDeleter> p(new TestObj(1));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected