MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / MyObject3

Method MyObject3

deps/pybind11-2.13.1/tests/test_smart_ptr.cpp:97–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95class MyObject3 : public std::enable_shared_from_this<MyObject3> {
96public:
97 MyObject3(const MyObject3 &) = default;
98 explicit MyObject3(int value) : value(value) { print_created(this, toString()); }
99 std::string toString() const { return "MyObject3[" + std::to_string(value) + "]"; }
100 virtual ~MyObject3() { print_destroyed(this); }

Callers 1

test_smart_ptrFunction · 0.80

Calls 1

print_createdFunction · 0.85

Tested by

no test coverage detected