tmp/tmpbc8t3whb/{from.md → to.md}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
| 1 |
##### Modifiers <a id="util.smartptr.shared.mod">[[util.smartptr.shared.mod]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
void swap(shared_ptr& r) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Exchanges the contents of `*this` and `r`.
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
-
void reset() noexcept;
|
| 11 |
```
|
| 12 |
|
| 13 |
*Effects:* Equivalent to `shared_ptr().swap(*this)`.
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
-
template<class Y> void reset(Y* p);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Effects:* Equivalent to `shared_ptr(p).swap(*this)`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
-
template<class Y, class D> void reset(Y* p, D d);
|
| 23 |
```
|
| 24 |
|
| 25 |
*Effects:* Equivalent to `shared_ptr(p, d).swap(*this)`.
|
| 26 |
|
| 27 |
``` cpp
|
| 28 |
-
template<class Y, class D, class A> void reset(Y* p, D d, A a);
|
| 29 |
```
|
| 30 |
|
| 31 |
*Effects:* Equivalent to `shared_ptr(p, d, a).swap(*this)`.
|
| 32 |
|
|
|
|
| 1 |
##### Modifiers <a id="util.smartptr.shared.mod">[[util.smartptr.shared.mod]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr void swap(shared_ptr& r) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Exchanges the contents of `*this` and `r`.
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
+
constexpr void reset() noexcept;
|
| 11 |
```
|
| 12 |
|
| 13 |
*Effects:* Equivalent to `shared_ptr().swap(*this)`.
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
+
template<class Y> constexpr void reset(Y* p);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Effects:* Equivalent to `shared_ptr(p).swap(*this)`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
+
template<class Y, class D> constexpr void reset(Y* p, D d);
|
| 23 |
```
|
| 24 |
|
| 25 |
*Effects:* Equivalent to `shared_ptr(p, d).swap(*this)`.
|
| 26 |
|
| 27 |
``` cpp
|
| 28 |
+
template<class Y, class D, class A> constexpr void reset(Y* p, D d, A a);
|
| 29 |
```
|
| 30 |
|
| 31 |
*Effects:* Equivalent to `shared_ptr(p, d, a).swap(*this)`.
|
| 32 |
|