MCPcopy Create free account
hub / github.com/apache/fory / use_count

Method use_count

cpp/fory/serialization/weak_ptr_serializer.h:137–137  ·  view source on GitHub ↗

get the use count of the target object. @return The number of shared_ptr instances pointing to the target, or 0 if the target has been destroyed.

Source from the content-addressed store, hash-verified

135 /// @return The number of shared_ptr instances pointing to the target,
136 /// or 0 if the target has been destroyed.
137 long use_count() const { return inner_->weak.use_count(); }
138
139 /// get the underlying weak_ptr.
140 ///

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64