class
std::stop_token
- Header
<stop_token>- Draft
- [stoptoken.general]
- Scope
std- cppreference
- std::stop_token
Synopsis
class stop_token;Member types
| Name | Declaration |
|---|---|
callback_typealias template · member type | = stop_callback<CallbackFn> |
Member functions
| Name | Declaration |
|---|---|
stop_tokenconstructor · 3 overloads | stop_token() +2 more |
~stop_tokendestructor | ~stop_token() |
operator=operator · 2 overloads | stop_token& operator=(const stop_token& t) +1 more |
stop_possiblemember function | bool stop_possible() const |
stop_requestedmember function | bool stop_requested() const |
swapmember function | void swap(stop_token& rhs) |
operator==operator | bool operator==(const stop_token& rhs) const |