Move-constructs a new std::experimental::weak_ptr object from a std::experimental::weak_ptr
instance with a different pointer type.
template<class Target> explicit weak_ptr(weak_ptr<Target>&& p) noexcept;
Target*
is implicitly convertible to T*.
Transfers ownership of the pointer from p
to the newly constructed std::experimental::weak_ptr instance.
this->use_count()
has the value p.use_count() had before the constructor was
invoked. p.use_count()==0.
Nothing.
#include <experimental/atomic>