From Jason Turner

[exec.simple.counting.token]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmps1mer5xw/{from.md → to.md} +35 -0
tmp/tmps1mer5xw/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### Token <a id="exec.simple.counting.token">[[exec.simple.counting.token]]</a>
2
+
3
+ ``` cpp
4
+ namespace std::execution {
5
+ struct simple_counting_scope::token {
6
+ template<sender Sender>
7
+ Sender&& wrap(Sender&& snd) const noexcept;
8
+ bool try_associate() const noexcept;
9
+ void disassociate() const noexcept;
10
+
11
+ private:
12
+ simple_counting_scope* scope; // exposition only
13
+ };
14
+ }
15
+ ```
16
+
17
+ ``` cpp
18
+ template<sender Sender>
19
+ Sender&& wrap(Sender&& snd) const noexcept;
20
+ ```
21
+
22
+ *Returns:* `std::forward<Sender>(snd)`.
23
+
24
+ ``` cpp
25
+ bool try_associate() const noexcept;
26
+ ```
27
+
28
+ *Effects:* Equivalent to: `return `*`scope`*`->`*`try-associate`*`();`
29
+
30
+ ``` cpp
31
+ void disassociate() const noexcept;
32
+ ```
33
+
34
+ *Effects:* Equivalent to *`scope`*`->`*`disassociate`*`()`.
35
+