MCPcopy Create free account
hub / github.com/HelenOS/helenos / reset

Method reset

uspace/lib/cpp/include/__bits/memory/weak_ptr.hpp:170–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 void reset() noexcept
171 {
172 weak_ptr{}.swap(*this);
173 }
174
175 /**
176 * 20.8.2.3.5, observers:

Callers 3

test_unique_ptrMethod · 0.45
test_operationsMethod · 0.45
test_packaged_taskMethod · 0.45

Calls 1

swapMethod · 0.45

Tested by 3

test_unique_ptrMethod · 0.36
test_operationsMethod · 0.36
test_packaged_taskMethod · 0.36