std::unstoppable_token - cppreference.com
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 在标头 |
||
template< class Token > concept unstoppable_token = std::stoppable_token<Token> && requires (const Token tok) { requires std::bool_constant<(!tok.stop_possible())>::value; }; |
(C++26 起) | |
概念 unstoppable_token<Token> 为 stoppable_token 指定额外的要求,其类型不允许停止。即表达式 tok.stop_possible() 必须可用在常量表达式中并返回 false。