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

Method toString

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

Source from the content-addressed store, hash-verified

88public:
89 explicit MyObject1(int value) : value(value) { print_created(this, toString()); }
90 std::string toString() const override { return "MyObject1[" + std::to_string(value) + "]"; }
91
92protected:
93 ~MyObject1() override { print_destroyed(this); }

Callers 1

TEST_SUBMODULEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected