Referencestdweak_ptrswap member function std::weak_ptr::swap Header<memory>Draft[util.smartptr.weak.general]Scopestd::weak_ptrcppreferencestd::weak_ptr::swap ↗ Synopsis constexpr void swap(weak_ptr& r) noexcept;