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

Method clone_unique_ptr

tests/test_class_sh_mi_thunks.cpp:134–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 return std::make_shared<Tiger>(*this); // upcast
133 }
134 std::unique_ptr<Animal> clone_unique_ptr() const override {
135 return std::unique_ptr<Tiger>(new Tiger(*this)); // upcast
136 }
137};
138
139} // namespace test_class_sh_mi_thunks

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected