Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::unstoppable_token

The concept unstoppable_token<Token> specifies an additional requirement for a stoppable_token where the type does not allow stopping.

NotebookLM
Defined in header <stop_token>
template< class Token >
concept unstoppable_token =
    std::stoppable_token<Token> &&
    requires (const Token tok) {
        requires std::bool_constant<(!tok.stop_possible())>::value;
    };
(since C++26)

The concept unstoppable_token<Token> specifies an additional requirement for a stoppable_token where the type does not allow stopping. That is, the expression tok.stop_possible() must be usable in constant expression and returns false.

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.