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

Method MyObject3

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

Source from the content-addressed store, hash-verified

112class MyObject3 : public std::enable_shared_from_this<MyObject3> {
113public:
114 MyObject3(const MyObject3 &) = default;
115 explicit MyObject3(int value) : value(value) { print_created(this, toString()); }
116 std::string toString() const { return "MyObject3[" + std::to_string(value) + "]"; }
117 virtual ~MyObject3() { print_destroyed(this); }

Callers 1

test_smart_ptrFunction · 0.80

Calls 1

print_createdFunction · 0.85

Tested by

no test coverage detected