Files
cppdraft_translate/cppdraft/exec/get/stop/token.md
2025-10-25 03:02:53 +03:00

1.2 KiB

[exec.get.stop.token]

33 Execution control library [exec]

33.5 Queries [exec.queries]

33.5.3 get_stop_token [exec.get.stop.token]

1

#

get_stop_token asks a queryable object for an associated stop token.

2

#

The name get_stop_token denotes a query object.

For a subexpression env,get_stop_token(env) is expression-equivalent to:

  • (2.1)

    MANDATE-NOTHROW(AS-CONST(env).query(get_stop_token)) if that expression is well-formed. Mandates: The type of the expression above satisfies stoppable_token.

  • (2.2)

    Otherwise, never_stop_token{}.

3

#

forwarding_query(get_stop_token) is a core constant expression and has value true.