HelenOS sources
use_count 353 uspace/lib/cpp/include/__bits/memory/shared_ptr.hpp return use_count() == 1L;
use_count 189 uspace/lib/cpp/include/__bits/memory/weak_ptr.hpp return use_count() == 0L;
use_count 165 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr copy pt1", ptr1.use_count(), 2L);
use_count 166 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr copy pt2", ptr2.use_count(), 2L);
use_count 171 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr move pt1", ptr1.use_count(), 2L);
use_count 172 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr move pt2", ptr3.use_count(), 2L);
use_count 173 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("shared_ptr move pt3", ptr2.use_count(), 0L);
use_count 192 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("weak_ptr shares use count", wptr2.use_count(), 1L);
use_count 196 uspace/lib/cpp/src/__bits/test/memory.cpp test_eq("locked ptr increases use count", ptr1.use_count(), 2L);
HelenOS homepage, sources at GitHub