tmp/tmppppa1ihz/{from.md → to.md}
RENAMED
|
@@ -9,5 +9,16 @@ template<class Y> weak_ptr& operator=(const shared_ptr<Y>& r) noexcept;
|
|
| 9 |
*Effects:* Equivalent to `weak_ptr(r).swap(*this)`.
|
| 10 |
|
| 11 |
*Remarks:* The implementation may meet the effects (and the implied
|
| 12 |
guarantees) via different means, without creating a temporary.
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
*Effects:* Equivalent to `weak_ptr(r).swap(*this)`.
|
| 10 |
|
| 11 |
*Remarks:* The implementation may meet the effects (and the implied
|
| 12 |
guarantees) via different means, without creating a temporary.
|
| 13 |
|
| 14 |
+
*Returns:* `*this`.
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
weak_ptr& operator=(weak_ptr&& r) noexcept;
|
| 18 |
+
template<class Y> weak_ptr& operator=(weak_ptr<Y>&& r) noexcept;
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
*Effects:* Equivalent to `weak_ptr(std::move(r)).swap(*this)`.
|
| 22 |
+
|
| 23 |
+
*Returns:* `*this`.
|
| 24 |
+
|