Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
std::shared_ptr 有一个 use_count 函数的方式,它返回引用同一托管对象的 shared_ptr 对象的数量;以同样的方式,我们如何获得 QSharedPointer 的引用计数。我没有找到任何API。这怎么能实现?