tmp/tmp2fz7uepr/{from.md → to.md}
RENAMED
|
@@ -1,55 +0,0 @@
|
|
| 1 |
-
#### `auto_ptr` constructors <a id="auto.ptr.cons">[[auto.ptr.cons]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
explicit auto_ptr(X* p =0) throw();
|
| 5 |
-
```
|
| 6 |
-
|
| 7 |
-
*Postconditions:* `*this` holds the pointer `p`.
|
| 8 |
-
|
| 9 |
-
``` cpp
|
| 10 |
-
auto_ptr(auto_ptr& a) throw();
|
| 11 |
-
```
|
| 12 |
-
|
| 13 |
-
*Effects:* Calls `a.release()`.
|
| 14 |
-
|
| 15 |
-
*Postconditions:* `*this` holds the pointer returned from `a.release()`.
|
| 16 |
-
|
| 17 |
-
``` cpp
|
| 18 |
-
template<class Y> auto_ptr(auto_ptr<Y>& a) throw();
|
| 19 |
-
```
|
| 20 |
-
|
| 21 |
-
*Requires:* `Y*` can be implicitly converted to `X*`.
|
| 22 |
-
|
| 23 |
-
*Effects:* Calls `a.release()`.
|
| 24 |
-
|
| 25 |
-
*Postconditions:* `*this` holds the pointer returned from `a.release()`.
|
| 26 |
-
|
| 27 |
-
``` cpp
|
| 28 |
-
auto_ptr& operator=(auto_ptr& a) throw();
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
*Requires:* The expression `delete get()` is well formed.
|
| 32 |
-
|
| 33 |
-
*Effects:* `reset(a.release())`.
|
| 34 |
-
|
| 35 |
-
*Returns:* `*this`.
|
| 36 |
-
|
| 37 |
-
``` cpp
|
| 38 |
-
template<class Y> auto_ptr& operator=(auto_ptr<Y>& a) throw();
|
| 39 |
-
```
|
| 40 |
-
|
| 41 |
-
*Requires:* `Y*` can be implicitly converted to `X*`. The expression
|
| 42 |
-
`delete get()` is well formed.
|
| 43 |
-
|
| 44 |
-
*Effects:* `reset(a.release())`.
|
| 45 |
-
|
| 46 |
-
*Returns:* `*this`.
|
| 47 |
-
|
| 48 |
-
``` cpp
|
| 49 |
-
~auto_ptr() throw();
|
| 50 |
-
```
|
| 51 |
-
|
| 52 |
-
*Requires:* The expression `delete get()` is well formed.
|
| 53 |
-
|
| 54 |
-
*Effects:* `delete get()`.
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|