Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HelenOS/helenos
/ use_count
Method
use_count
uspace/lib/cpp/include/__bits/memory/weak_ptr.hpp:179–185 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
177
*/
178
179
long use_count() const noexcept
180
{
181
if (payload_)
182
return payload_->refs();
183
else
184
return 0L;
185
}
186
187
bool expired() const noexcept
188
{
Callers
2
test_shared_ptr
Method · 0.45
test_weak_ptr
Method · 0.45
Calls
1
refs
Method · 0.80
Tested by
2
test_shared_ptr
Method · 0.36
test_weak_ptr
Method · 0.36