MCPcopy 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_ptrMethod · 0.45
test_weak_ptrMethod · 0.45

Calls 1

refsMethod · 0.80

Tested by 2

test_shared_ptrMethod · 0.36
test_weak_ptrMethod · 0.36