Move-construct a weak_ptr from a compatible other.
Declared in <bslstl_sharedptr.h>
template<class COMPATIBLE_TYPE>
weak_ptr(weak_ptr<COMPATIBLE_TYPE>&& other) noexcept;
Create a weak pointer that refers to the same object (if any) as the specified other weak pointer, and reset other to an empty state. Note that this operation does not involve any change to reference counts.
| Name | Description |
|---|---|
| other | compatible weak pointer to move from |