From Jason Turner

[stoptoken.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp6hgmz7of/{from.md → to.md} +0 -57
tmp/tmp6hgmz7of/{from.md → to.md} RENAMED
@@ -1,57 +0,0 @@
1
- #### Constructors, copy, and assignment <a id="stoptoken.cons">[[stoptoken.cons]]</a>
2
-
3
- ``` cpp
4
- stop_token() noexcept;
5
- ```
6
-
7
- *Ensures:* `stop_possible()` is `false` and `stop_requested()` is
8
- `false`.
9
-
10
- [*Note 1*: Because the created `stop_token` object can never receive a
11
- stop request, no resources are allocated for a stop
12
- state. — *end note*]
13
-
14
- ``` cpp
15
- stop_token(const stop_token& rhs) noexcept;
16
- ```
17
-
18
- *Ensures:* `*this == rhs` is `true`.
19
-
20
- [*Note 2*: `*this` and `rhs` share the ownership of the same stop
21
- state, if any. — *end note*]
22
-
23
- ``` cpp
24
- stop_token(stop_token&& rhs) noexcept;
25
- ```
26
-
27
- *Ensures:* `*this` contains the value of `rhs` prior to the start of
28
- construction and `rhs.stop_possible()` is `false`.
29
-
30
- ``` cpp
31
- ~stop_token();
32
- ```
33
-
34
- *Effects:* Releases ownership of the stop state, if any.
35
-
36
- ``` cpp
37
- stop_token& operator=(const stop_token& rhs) noexcept;
38
- ```
39
-
40
- *Effects:* Equivalent to: `stop_token(rhs).swap(*this)`.
41
-
42
- *Returns:* `*this`.
43
-
44
- ``` cpp
45
- stop_token& operator=(stop_token&& rhs) noexcept;
46
- ```
47
-
48
- *Effects:* Equivalent to: `stop_token(std::move(rhs)).swap(*this)`.
49
-
50
- *Returns:* `*this`.
51
-
52
- ``` cpp
53
- void swap(stop_token& rhs) noexcept;
54
- ```
55
-
56
- *Effects:* Exchanges the values of `*this` and `rhs`.
57
-