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

Method Foo

tests/test_class_sh_shared_ptr_copy_move.cpp:15–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13struct Foo {
14 std::string history;
15 explicit Foo(const std::string &history_) : history(history_) {}
16 Foo(const Foo &other) : history(other.history + "_CpCtor") {}
17 Foo(Foo &&other) noexcept : history(other.history + "_MvCtor") {}
18 Foo &operator=(const Foo &other) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected