From Jason Turner

[coroutine.handle.noop.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpg0p2id8z/{from.md → to.md} +31 -0
tmp/tmpg0p2id8z/{from.md → to.md} RENAMED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### General <a id="coroutine.handle.noop.general">[[coroutine.handle.noop.general]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ template<>
6
+ struct coroutine_handle<noop_coroutine_promise>
7
+ {
8
+ // [coroutine.handle.noop.conv], conversion
9
+ constexpr operator coroutine_handle<>() const noexcept;
10
+
11
+ // [coroutine.handle.noop.observers], observers
12
+ constexpr explicit operator bool() const noexcept;
13
+ constexpr bool done() const noexcept;
14
+
15
+ // [coroutine.handle.noop.resumption], resumption
16
+ constexpr void operator()() const noexcept;
17
+ constexpr void resume() const noexcept;
18
+ constexpr void destroy() const noexcept;
19
+
20
+ // [coroutine.handle.noop.promise], promise access
21
+ noop_coroutine_promise& promise() const noexcept;
22
+
23
+ // [coroutine.handle.noop.address], address
24
+ constexpr void* address() const noexcept;
25
+ private:
26
+ coroutine_handle(unspecified);
27
+ void* ptr; // exposition only
28
+ };
29
+ }
30
+ ```
31
+