tmp/tmpr0gwj8dx/{from.md → to.md}
RENAMED
|
@@ -6,12 +6,21 @@ constexpr void* address() const noexcept;
|
|
| 6 |
|
| 7 |
*Returns:* `ptr`.
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
static constexpr coroutine_handle<> coroutine_handle<>::from_address(void* addr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
static constexpr coroutine_handle<Promise> coroutine_handle<Promise>::from_address(void* addr);
|
| 12 |
```
|
| 13 |
|
| 14 |
-
*Preconditions:* `addr` was obtained via a prior call to `address`
|
|
|
|
| 15 |
|
| 16 |
*Ensures:* `from_address(address()) == *this`.
|
| 17 |
|
|
|
|
| 6 |
|
| 7 |
*Returns:* `ptr`.
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
static constexpr coroutine_handle<> coroutine_handle<>::from_address(void* addr);
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
*Preconditions:* `addr` was obtained via a prior call to `address` on an
|
| 14 |
+
object whose type is a specialization of `coroutine_handle`.
|
| 15 |
+
|
| 16 |
+
*Ensures:* `from_address(address()) == *this`.
|
| 17 |
+
|
| 18 |
+
``` cpp
|
| 19 |
static constexpr coroutine_handle<Promise> coroutine_handle<Promise>::from_address(void* addr);
|
| 20 |
```
|
| 21 |
|
| 22 |
+
*Preconditions:* `addr` was obtained via a prior call to `address` on an
|
| 23 |
+
object of type cv `coroutine_handle<Promise>`.
|
| 24 |
|
| 25 |
*Ensures:* `from_address(address()) == *this`.
|
| 26 |
|