tmp/tmpe7f2woau/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Class `never_stop_token` <a id="stoptoken.never">[[stoptoken.never]]</a>
|
| 2 |
+
|
| 3 |
+
The class `never_stop_token` models the `unstoppable_token` concept. It
|
| 4 |
+
provides a stop token interface, but also provides static information
|
| 5 |
+
that a stop is never possible nor requested.
|
| 6 |
+
|
| 7 |
+
``` cpp
|
| 8 |
+
namespace std {
|
| 9 |
+
class never_stop_token {
|
| 10 |
+
struct callback-type { // exposition only
|
| 11 |
+
explicit callback-type(never_stop_token, auto&&) noexcept {}
|
| 12 |
+
};
|
| 13 |
+
public:
|
| 14 |
+
template<class>
|
| 15 |
+
using callback_type = callback-type;
|
| 16 |
+
|
| 17 |
+
static constexpr bool stop_requested() noexcept { return false; }
|
| 18 |
+
static constexpr bool stop_possible() noexcept { return false; }
|
| 19 |
+
|
| 20 |
+
bool operator==(const never_stop_token&) const = default;
|
| 21 |
+
};
|
| 22 |
+
}
|
| 23 |
+
```
|
| 24 |
+
|