Referencestdweak_ptrlock member function std::weak_ptr::lock Header<memory>Draft[util.smartptr.weak.general]Scopestd::weak_ptrcppreferencestd::weak_ptr::lock ↗ Synopsis constexpr shared_ptr<T> lock() const noexcept;