MCPcopy Create free account
hub / github.com/davisking/dlib / use_count

Method use_count

dlib/smart_pointers/weak_ptr.h:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 long use_count(
134 ) const
135 {
136 if (expired())
137 return 0;
138 else
139 return weak_node->shared_node->ref_count;
140 }
141
142 bool expired() const { return weak_node == 0 || weak_node->shared_node == 0; }
143

Callers 2

smart_pointers_testFunction · 0.45
ensure_use_count_1Method · 0.45

Calls

no outgoing calls

Tested by 1

smart_pointers_testFunction · 0.36