- stop_token[meta header]
- concept[meta id-type]
- std[meta namespace]
- cpp26[meta cpp]
namespace std {
template<class Token>
concept unstoppable_token =
stoppable_token<Token> &&
requires (const Token tok) {
requires bool_constant<(!tok.stop_possible())>::value;
};
}
- stoppable_token[link stoppable_token.md]
- bool_constant[link /reference/type_traits/bool_constant.md]
unstoppable_token
は、型Token
が停止不可能な停止トークンであることを表すコンセプトである。
- C++26
- Clang: ??
- GCC: ??
- ICC: ??
- Visual C++: ??