tmp/tmp68extb11/{from.md → to.md}
RENAMED
|
@@ -2,65 +2,12 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
stop_source();
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:*
|
| 8 |
|
| 9 |
*Ensures:* `stop_possible()` is `true` and `stop_requested()` is
|
| 10 |
`false`.
|
| 11 |
|
| 12 |
*Throws:* `bad_alloc` if memory cannot be allocated for the stop state.
|
| 13 |
|
| 14 |
-
``` cpp
|
| 15 |
-
explicit stop_source(nostopstate_t) noexcept;
|
| 16 |
-
```
|
| 17 |
-
|
| 18 |
-
*Ensures:* `stop_possible()` is `false` and `stop_requested()` is
|
| 19 |
-
`false`.
|
| 20 |
-
|
| 21 |
-
[*Note 1*: No resources are allocated for the state. — *end note*]
|
| 22 |
-
|
| 23 |
-
``` cpp
|
| 24 |
-
stop_source(const stop_source& rhs) noexcept;
|
| 25 |
-
```
|
| 26 |
-
|
| 27 |
-
*Ensures:* `*this == rhs` is `true`.
|
| 28 |
-
|
| 29 |
-
[*Note 2*: `*this` and `rhs` share the ownership of the same stop
|
| 30 |
-
state, if any. — *end note*]
|
| 31 |
-
|
| 32 |
-
``` cpp
|
| 33 |
-
stop_source(stop_source&& rhs) noexcept;
|
| 34 |
-
```
|
| 35 |
-
|
| 36 |
-
*Ensures:* `*this` contains the value of `rhs` prior to the start of
|
| 37 |
-
construction and `rhs.stop_possible()` is `false`.
|
| 38 |
-
|
| 39 |
-
``` cpp
|
| 40 |
-
~stop_source();
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
*Effects:* Releases ownership of the stop state, if any.
|
| 44 |
-
|
| 45 |
-
``` cpp
|
| 46 |
-
stop_source& operator=(const stop_source& rhs) noexcept;
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
-
*Effects:* Equivalent to: `stop_source(rhs).swap(*this)`.
|
| 50 |
-
|
| 51 |
-
*Returns:* `*this`.
|
| 52 |
-
|
| 53 |
-
``` cpp
|
| 54 |
-
stop_source& operator=(stop_source&& rhs) noexcept;
|
| 55 |
-
```
|
| 56 |
-
|
| 57 |
-
*Effects:* Equivalent to: `stop_source(std::move(rhs)).swap(*this)`.
|
| 58 |
-
|
| 59 |
-
*Returns:* `*this`.
|
| 60 |
-
|
| 61 |
-
``` cpp
|
| 62 |
-
void swap(stop_source& rhs) noexcept;
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
-
*Effects:* Exchanges the values of `*this` and `rhs`.
|
| 66 |
-
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
stop_source();
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Initializes *stop-state* with a pointer to a new stop state.
|
| 8 |
|
| 9 |
*Ensures:* `stop_possible()` is `true` and `stop_requested()` is
|
| 10 |
`false`.
|
| 11 |
|
| 12 |
*Throws:* `bad_alloc` if memory cannot be allocated for the stop state.
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|