From Jason Turner

[stoptoken.mem]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmptszaebpy/{from.md → to.md} +16 -6
tmp/tmptszaebpy/{from.md → to.md} RENAMED
@@ -1,21 +1,31 @@
1
- #### Members <a id="stoptoken.mem">[[stoptoken.mem]]</a>
2
 
3
  ``` cpp
4
- [[nodiscard]] bool stop_requested() const noexcept;
5
  ```
6
 
7
- *Returns:* `true` if `*this` has ownership of a stop state that has
 
 
 
 
 
 
 
 
 
 
8
  received a stop request; otherwise, `false`.
9
 
10
  ``` cpp
11
- [[nodiscard]] bool stop_possible() const noexcept;
12
  ```
13
 
14
- *Returns:* `false` if:
15
 
16
- - `*this` does not have ownership of a stop state, or
17
  - a stop request was not made and there are no associated `stop_source`
18
  objects;
19
 
20
  otherwise, `true`.
21
 
 
1
+ #### Member functions <a id="stoptoken.mem">[[stoptoken.mem]]</a>
2
 
3
  ``` cpp
4
+ void swap(stop_token& rhs) noexcept;
5
  ```
6
 
7
+ *Effects:* Equivalent to:
8
+
9
+ ``` cpp
10
+ stop-state.swap(rhs.stop-state);
11
+ ```
12
+
13
+ ``` cpp
14
+ bool stop_requested() const noexcept;
15
+ ```
16
+
17
+ *Returns:* `true` if *stop-state* refers to a stop state that has
18
  received a stop request; otherwise, `false`.
19
 
20
  ``` cpp
21
+ bool stop_possible() const noexcept;
22
  ```
23
 
24
+ *Returns:* `false` if
25
 
26
+ - `*this` is disengaged, or
27
  - a stop request was not made and there are no associated `stop_source`
28
  objects;
29
 
30
  otherwise, `true`.
31