Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ unique
Method
unique
dlib/smart_pointers/shared_ptr.h:371–374 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
369
T* get() const { return data; }
370
371
bool unique() const
372
{
373
return use_count() == 1;
374
}
375
376
long use_count() const
377
{
Callers
1
smart_pointers_test
Function · 0.45
Calls
no outgoing calls
Tested by
1
smart_pointers_test
Function · 0.36