tmp/tmpbatzd8j_/{from.md → to.md}
RENAMED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
#### `auto_ptr` conversions <a id="auto.ptr.conv">[[auto.ptr.conv]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
auto_ptr(auto_ptr_ref<X> r) throw();
|
| 5 |
-
```
|
| 6 |
-
|
| 7 |
-
*Effects:* Calls `p.release()` for the `auto_ptr` `p` that `r` holds.
|
| 8 |
-
|
| 9 |
-
*Postconditions:* `*this` holds the pointer returned from `release()`.
|
| 10 |
-
|
| 11 |
-
``` cpp
|
| 12 |
-
template<class Y> operator auto_ptr_ref<Y>() throw();
|
| 13 |
-
```
|
| 14 |
-
|
| 15 |
-
*Returns:* An `auto_ptr_ref<Y>` that holds `*this`.
|
| 16 |
-
|
| 17 |
-
``` cpp
|
| 18 |
-
template<class Y> operator auto_ptr<Y>() throw();
|
| 19 |
-
```
|
| 20 |
-
|
| 21 |
-
*Effects:* Calls `release()`.
|
| 22 |
-
|
| 23 |
-
*Returns:* An `auto_ptr<Y>` that holds the pointer returned from
|
| 24 |
-
`release()`.
|
| 25 |
-
|
| 26 |
-
``` cpp
|
| 27 |
-
auto_ptr& operator=(auto_ptr_ref<X> r) throw()
|
| 28 |
-
```
|
| 29 |
-
|
| 30 |
-
*Effects:* Calls `reset(p.release())` for the `auto_ptr p` that `r`
|
| 31 |
-
holds a reference to.
|
| 32 |
-
|
| 33 |
-
*Returns:* `*this`
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|