Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1002 Bytes

unstoppable_token.md

File metadata and controls

41 lines (32 loc) · 1002 Bytes

unstoppable_token

  • 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

処理系

関連項目

参照