tmp/tmpp9n4lqp4/{from.md → to.md}
RENAMED
|
@@ -11,14 +11,14 @@ constexpr coroutine_handle(nullptr_t) noexcept;
|
|
| 11 |
static coroutine_handle from_promise(Promise& p);
|
| 12 |
```
|
| 13 |
|
| 14 |
*Preconditions:* `p` is a reference to a promise object of a coroutine.
|
| 15 |
|
| 16 |
-
*Returns:* A coroutine handle `h` referring to the coroutine.
|
| 17 |
-
|
| 18 |
*Ensures:* `addressof(h.promise()) == addressof(p)`.
|
| 19 |
|
|
|
|
|
|
|
| 20 |
``` cpp
|
| 21 |
coroutine_handle& operator=(nullptr_t) noexcept;
|
| 22 |
```
|
| 23 |
|
| 24 |
*Ensures:* `address() == nullptr`.
|
|
|
|
| 11 |
static coroutine_handle from_promise(Promise& p);
|
| 12 |
```
|
| 13 |
|
| 14 |
*Preconditions:* `p` is a reference to a promise object of a coroutine.
|
| 15 |
|
|
|
|
|
|
|
| 16 |
*Ensures:* `addressof(h.promise()) == addressof(p)`.
|
| 17 |
|
| 18 |
+
*Returns:* A coroutine handle `h` referring to the coroutine.
|
| 19 |
+
|
| 20 |
``` cpp
|
| 21 |
coroutine_handle& operator=(nullptr_t) noexcept;
|
| 22 |
```
|
| 23 |
|
| 24 |
*Ensures:* `address() == nullptr`.
|