|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <stop_token> | ||
class never_stop_token; | (since C++26) | |
Thenever_stop_token class modelsunstoppable_token that provides static information that a stop is never possible nor requested. It is the default stop token type returned bystd::get_stop_token if no other associated stop token is being provided in the queryable object.
Contents |
| Type | Definition | ||||||
| callback_type<Callback> | /*callback-type*/ where the type is defined as:
|
stop_requested [static] | indicates that a stop can never be requested (public static member function) |
stop_possible [static] | indicates that a stop is not possible (public static member function) |
operator== | compares twonever_stop_token objects(public member function) |
staticconstexprbool stop_requested()noexcept{returnfalse;} | ||
Always returnsfalse, indicating that a stop can never be requested.
staticconstexprbool stop_possible()noexcept{returnfalse;} | ||
Always returnsfalse, indicating that a stop is not possible.
bool operator==(const never_stop_token&)const=default; | ||
Twonever_stop_token objects always compare equal.
| This section is incomplete Reason: no example |