void swap(weak_ptr& r) noexcept;
Effects: Меняет содержимое *this и r.
void reset() noexcept;
Effects: Эквивалентно weak_ptr().swap(*this).