std::never_stop_token - cppreference.com
From cppreference.com
|
|
(since C++26) | |
The never_stop_token class models unstoppable_token that provides static information that a stop is never possible nor requested. It is the default stop token type returned by std::get_stop_token if no other associated stop token is being provided in the queryable object.
Member alias templates
| Type | Definition | ||||||
callback_type<Callback>
|
/*callback-type*/where the type is defined as:
|
Member functions
| indicates that a stop can never be requested (public static member function) | |
| indicates that a stop is not possible (public static member function) | |
compares two never_stop_token objects (public member function) |
std::never_stop_token::stop_requested
|
|
||
Always returns false, indicating that a stop can never be requested.
std::never_stop_token::stop_possible
|
|
||
Always returns false, indicating that a stop is not possible.
std::never_stop_token::operator==
|
|
||
Two never_stop_token objects always compare equal.