tmp/tmpw9imkcwi/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Constructors and destructor <a id="stopcallback.inplace.cons">[[stopcallback.inplace.cons]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template<class Initializer>
|
| 5 |
+
explicit inplace_stop_callback(inplace_stop_token st, Initializer&& init)
|
| 6 |
+
noexcept(is_nothrow_constructible_v<CallbackFn, Initializer>);
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
*Constraints:* `constructible_from<CallbackFn, Initializer>` is
|
| 10 |
+
satisfied.
|
| 11 |
+
|
| 12 |
+
*Effects:* Initializes *callback-fn* with
|
| 13 |
+
`std::forward<Initializer>(init)` and executes a stoppable callback
|
| 14 |
+
registration [[stoptoken.concepts]].
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
~inplace_stop_callback();
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
*Effects:* Executes a stoppable callback
|
| 21 |
+
deregistration [[stoptoken.concepts]].
|
| 22 |
+
|