tmp/tmptszaebpy/{from.md → to.md}
RENAMED
|
@@ -1,21 +1,31 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
received a stop request; otherwise, `false`.
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
-
|
| 12 |
```
|
| 13 |
|
| 14 |
-
*Returns:* `false` if
|
| 15 |
|
| 16 |
-
- `*this`
|
| 17 |
- a stop request was not made and there are no associated `stop_source`
|
| 18 |
objects;
|
| 19 |
|
| 20 |
otherwise, `true`.
|
| 21 |
|
|
|
|
| 1 |
+
#### Member functions <a id="stoptoken.mem">[[stoptoken.mem]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
void swap(stop_token& rhs) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Equivalent to:
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
stop-state.swap(rhs.stop-state);
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
``` cpp
|
| 14 |
+
bool stop_requested() const noexcept;
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
*Returns:* `true` if *stop-state* refers to a stop state that has
|
| 18 |
received a stop request; otherwise, `false`.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
+
bool stop_possible() const noexcept;
|
| 22 |
```
|
| 23 |
|
| 24 |
+
*Returns:* `false` if
|
| 25 |
|
| 26 |
+
- `*this` is disengaged, or
|
| 27 |
- a stop request was not made and there are no associated `stop_source`
|
| 28 |
objects;
|
| 29 |
|
| 30 |
otherwise, `true`.
|
| 31 |
|