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

Method set_sp

tests/test_potentially_slicing_weak_ptr.cpp:83–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81template <typename VB>
82struct SpOwner {
83 void set_sp(const std::shared_ptr<VB> &sp_) { sp = sp_; }
84
85 int get_code() const {
86 if (!sp) {

Callers 1

test_with_sp_ownerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected