concept
std::stoppable_token
- Header
<stop_token>- Scope
std- cppreference
- <stop_token> nearest page
Synopsis
template<class Token>
concept stoppable_token = requires(const Token tok) {
typename check-type-alias-exists<Token::template callback_type>;
{ tok.stop_requested() } noexcept -> same_as<bool>;
{ tok.stop_possible() } noexcept -> same_as<bool>;
{ Token(tok) } noexcept;
} && copyable<Token> && equality_comparable<Token>;