Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
81
template <typename VB>
82
struct 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_owner
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected