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

Method MyObject2

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

Source from the content-addressed store, hash-verified

100class MyObject2 {
101public:
102 MyObject2(const MyObject2 &) = default;
103 explicit MyObject2(int value) : value(value) { print_created(this, toString()); }
104 std::string toString() const { return "MyObject2[" + std::to_string(value) + "]"; }
105 virtual ~MyObject2() { print_destroyed(this); }

Callers 1

test_smart_ptrFunction · 0.80

Calls 1

print_createdFunction · 0.85

Tested by

no test coverage detected