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

Method custom_deleter

tests/test_class_sh_basic.cpp:33–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 std::string trace_txt;
32
33 custom_deleter() = default;
34 explicit custom_deleter(const std::string &trace_txt_) : trace_txt(trace_txt_) {}
35
36 custom_deleter(const custom_deleter &other) { trace_txt = other.trace_txt + "_CpCtor"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected