Referencestdweak_ptruse_count member function std::weak_ptr::use_count Header<memory>Draft[util.smartptr.weak.general]Scopestd::weak_ptrcppreferencestd::weak_ptr::use_count ↗ Synopsis constexpr long use_count() const noexcept;