Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ use_count
Function
use_count
tests/test_class_sh_trampoline_shared_from_this.cpp:77–77 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
75
};
76
77
long use_count(const std::shared_ptr<Sft> &obj) { return obj.use_count(); }
78
79
long pass_shared_ptr(const std::shared_ptr<Sft> &obj) {
80
auto sft = obj->shared_from_this();
Callers
nothing calls this directly
Calls
1
use_count
Method · 0.45
Tested by
no test coverage detected