tmp/tmptemfymen/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
shared_ptr& operator=(const shared_ptr& r) noexcept;
|
| 5 |
template<class Y> shared_ptr& operator=(const shared_ptr<Y>& r) noexcept;
|
| 6 |
```
|
| 7 |
|
| 8 |
*Effects:* Equivalent to `shared_ptr(r).swap(*this)`.
|
| 9 |
|
| 10 |
*Returns:* `*this`.
|
| 11 |
|
| 12 |
-
[*Note
|
| 13 |
|
| 14 |
The use count updates caused by the temporary object construction and
|
| 15 |
destruction are not observable side effects, so the implementation may
|
| 16 |
meet the effects (and the implied guarantees) via different means,
|
| 17 |
without creating a temporary. In particular, in the example:
|
|
|
|
| 1 |
+
#### Assignment <a id="util.smartptr.shared.assign">[[util.smartptr.shared.assign]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
shared_ptr& operator=(const shared_ptr& r) noexcept;
|
| 5 |
template<class Y> shared_ptr& operator=(const shared_ptr<Y>& r) noexcept;
|
| 6 |
```
|
| 7 |
|
| 8 |
*Effects:* Equivalent to `shared_ptr(r).swap(*this)`.
|
| 9 |
|
| 10 |
*Returns:* `*this`.
|
| 11 |
|
| 12 |
+
[*Note 1*:
|
| 13 |
|
| 14 |
The use count updates caused by the temporary object construction and
|
| 15 |
destruction are not observable side effects, so the implementation may
|
| 16 |
meet the effects (and the implied guarantees) via different means,
|
| 17 |
without creating a temporary. In particular, in the example:
|