tmp/tmpm61y3xi2/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Member functions <a id="stoptoken.inplace.mem">[[stoptoken.inplace.mem]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
void swap(inplace_stop_token& rhs) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* Exchanges the values of *stop-source* and
|
| 8 |
+
`rhs.`*`stop-source`*.
|
| 9 |
+
|
| 10 |
+
``` cpp
|
| 11 |
+
bool stop_requested() const noexcept;
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
*Effects:* Equivalent to:
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
return stop-source != nullptr && stop-source->stop_requested();
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
[*Note 1*: As specified in [[basic.life]], the behavior of
|
| 21 |
+
`stop_requested` is undefined unless the call strongly happens before
|
| 22 |
+
the start of the destructor of the associated `inplace_stop_source`
|
| 23 |
+
object, if any. — *end note*]
|
| 24 |
+
|
| 25 |
+
``` cpp
|
| 26 |
+
stop_possible() const noexcept;
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
*Returns:* *`stop-source`*` != nullptr`.
|
| 30 |
+
|
| 31 |
+
[*Note 2*: As specified in [[basic.stc.general]], the behavior of
|
| 32 |
+
`stop_possible` is implementation-defined unless the call strongly
|
| 33 |
+
happens before the end of the storage duration of the associated
|
| 34 |
+
`inplace_stop_source` object, if any. — *end note*]
|
| 35 |
+
|