stop_token() noexcept; | (1) | (since C++20) |
stop_token( const stop_token& other ) noexcept; | (2) | (since C++20) |
stop_token( stop_token&& other ) noexcept; | (3) | (since C++20) |
Constructs a new stop_token object.
stop_token with no associated stop-state.stop_token whose associated stop-state is the same as that of other.stop_token whose associated stop-state is the same as that of other; other is left empty.| other | - | another stop_token object to construct this stop_token object with |
stop_possible() and stop_requested() are both false
*this and other share the same associated stop-state and compare equal*this has other's previously associated stop-state, and other.stop_possible() is false
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/stop_token/stop_token