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

Method set_wp

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

Source from the content-addressed store, hash-verified

98template <typename VB>
99struct WpOwner {
100 void set_wp(const std::weak_ptr<VB> &wp_) { wp = wp_; }
101
102 int get_code() const {
103 auto sp = wp.lock();

Callers 1

wrapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected