Exchange the stop states referred to by lhs and rhs.
This function is a hidden friend of stop_token, declared only inside that class: it can be found only through argument-dependent lookup.
Set lhs to refer to the stop state (or lack thereof) that rhs referred to, and vice versa. Implementation note: this function is required by the standard to be a hidden friend ([hidden.friends], [stoptoken.general]).
| Name | Description |
|---|---|
| lhs | first token participating in the swap |
| rhs | second token participating in the swap |