From Jason Turner

[stopsource.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmprg0odtf7/{from.md → to.md} +67 -0
tmp/tmprg0odtf7/{from.md → to.md} RENAMED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Constructors, copy, and assignment <a id="stopsource.cons">[[stopsource.cons]]</a>
2
+
3
+ ``` cpp
4
+ stop_source();
5
+ ```
6
+
7
+ *Effects:* Initialises `*this` to have ownership of a new stop state.
8
+
9
+ *Ensures:* `stop_possible()` is `true` and `stop_requested()` is
10
+ `false`.
11
+
12
+ *Throws:* `bad_alloc` if memory could not be allocated for the stop
13
+ state.
14
+
15
+ ``` cpp
16
+ explicit stop_source(nostopstate_t) noexcept;
17
+ ```
18
+
19
+ *Ensures:* `stop_possible()` is `false` and `stop_requested()` is
20
+ `false`.
21
+
22
+ [*Note 1*: No resources are allocated for the state. — *end note*]
23
+
24
+ ``` cpp
25
+ stop_source(const stop_source& rhs) noexcept;
26
+ ```
27
+
28
+ *Ensures:* `*this == rhs` is `true`.
29
+
30
+ [*Note 2*: `*this` and `rhs` share the ownership of the same stop
31
+ state, if any. — *end note*]
32
+
33
+ ``` cpp
34
+ stop_source(stop_source&& rhs) noexcept;
35
+ ```
36
+
37
+ *Ensures:* `*this` contains the value of `rhs` prior to the start of
38
+ construction and `rhs.stop_possible()` is `false`.
39
+
40
+ ``` cpp
41
+ ~stop_source();
42
+ ```
43
+
44
+ *Effects:* Releases ownership of the stop state, if any.
45
+
46
+ ``` cpp
47
+ stop_source& operator=(const stop_source& rhs) noexcept;
48
+ ```
49
+
50
+ *Effects:* Equivalent to: `stop_source(rhs).swap(*this)`.
51
+
52
+ *Returns:* `*this`.
53
+
54
+ ``` cpp
55
+ stop_source& operator=(stop_source&& rhs) noexcept;
56
+ ```
57
+
58
+ *Effects:* Equivalent to: `stop_source(std::move(rhs)).swap(*this)`.
59
+
60
+ *Returns:* `*this`.
61
+
62
+ ``` cpp
63
+ void swap(stop_source& rhs) noexcept;
64
+ ```
65
+
66
+ *Effects:* Exchanges the values of `*this` and `rhs`.
67
+