From Jason Turner

[stopsource.inplace.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpomwndt2c/{from.md → to.md} +26 -0
tmp/tmpomwndt2c/{from.md → to.md} RENAMED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### General <a id="stopsource.inplace.general">[[stopsource.inplace.general]]</a>
2
+
3
+ The class `inplace_stop_source` models `stoppable-source`.
4
+
5
+ ``` cpp
6
+ namespace std {
7
+ class inplace_stop_source {
8
+ public:
9
+ // [stopsource.inplace.cons], constructors
10
+ constexpr inplace_stop_source() noexcept;
11
+
12
+ inplace_stop_source(inplace_stop_source&&) = delete;
13
+ inplace_stop_source(const inplace_stop_source&) = delete;
14
+ inplace_stop_source& operator=(inplace_stop_source&&) = delete;
15
+ inplace_stop_source& operator=(const inplace_stop_source&) = delete;
16
+ ~inplace_stop_source();
17
+
18
+ // [stopsource.inplace.mem], stop handling
19
+ constexpr inplace_stop_token get_token() const noexcept;
20
+ static constexpr bool stop_possible() noexcept { return true; }
21
+ bool stop_requested() const noexcept;
22
+ bool request_stop() noexcept;
23
+ };
24
+ }
25
+ ```
26
+