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

Method use_count

dlib/smart_pointers/shared_ptr.h:376–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374 }
375
376 long use_count() const
377 {
378 if (shared_node != 0)
379 return shared_node->ref_count;
380 else
381 return 0;
382 }
383
384 operator bool(
385 ) const { return get() != 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected