tmp/tmpc14lw93g/{from.md → to.md}
RENAMED
|
@@ -4,14 +4,14 @@ The function template `async` provides a mechanism to launch a function
|
|
| 4 |
potentially in a new thread and provides the result of the function in a
|
| 5 |
`future` object with which it shares a shared state.
|
| 6 |
|
| 7 |
``` cpp
|
| 8 |
template<class F, class... Args>
|
| 9 |
-
|
| 10 |
async(F&& f, Args&&... args);
|
| 11 |
template<class F, class... Args>
|
| 12 |
-
|
| 13 |
async(launch policy, F&& f, Args&&... args);
|
| 14 |
```
|
| 15 |
|
| 16 |
*Mandates:* The following are all `true`:
|
| 17 |
|
|
|
|
| 4 |
potentially in a new thread and provides the result of the function in a
|
| 5 |
`future` object with which it shares a shared state.
|
| 6 |
|
| 7 |
``` cpp
|
| 8 |
template<class F, class... Args>
|
| 9 |
+
future<invoke_result_t<decay_t<F>, decay_t<Args>...>>
|
| 10 |
async(F&& f, Args&&... args);
|
| 11 |
template<class F, class... Args>
|
| 12 |
+
future<invoke_result_t<decay_t<F>, decay_t<Args>...>>
|
| 13 |
async(launch policy, F&& f, Args&&... args);
|
| 14 |
```
|
| 15 |
|
| 16 |
*Mandates:* The following are all `true`:
|
| 17 |
|