From Jason Turner

[stoptoken.inplace.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpzczz2cb5/{from.md → to.md} +27 -0
tmp/tmpzczz2cb5/{from.md → to.md} RENAMED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### General <a id="stoptoken.inplace.general">[[stoptoken.inplace.general]]</a>
2
+
3
+ The class `inplace_stop_token` models the concept `stoppable_token`. It
4
+ references the stop state of its associated `inplace_stop_source` object
5
+ [[stopsource.inplace]], if any.
6
+
7
+ ``` cpp
8
+ namespace std {
9
+ class inplace_stop_token {
10
+ public:
11
+ template<class CallbackFn>
12
+ using callback_type = inplace_stop_callback<CallbackFn>;
13
+
14
+ inplace_stop_token() = default;
15
+ bool operator==(const inplace_stop_token&) const = default;
16
+
17
+ // [stoptoken.inplace.mem], member functions
18
+ bool stop_requested() const noexcept;
19
+ bool stop_possible() const noexcept;
20
+ void swap(inplace_stop_token&) noexcept;
21
+
22
+ private:
23
+ const inplace_stop_source* stop-source = nullptr; // exposition only
24
+ };
25
+ }
26
+ ```
27
+