From Jason Turner

[coroutine.handle.export.import]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpcaomohf7/{from.md → to.md} +17 -0
tmp/tmpcaomohf7/{from.md → to.md} RENAMED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Export/import <a id="coroutine.handle.export.import">[[coroutine.handle.export.import]]</a>
2
+
3
+ ``` cpp
4
+ constexpr void* address() const noexcept;
5
+ ```
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
+