std::stop_token:: swap
From cppreference.net
<
cpp
|
thread
|
stop token
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_token
| Member functions | ||||
| Modifiers | ||||
|
stop_token::swap
|
||||
| Observers | ||||
| Non-member functions | ||||
|
void
swap
(
std::
stop_token
&
other
)
noexcept
;
|
(desde C++20) | |
Intercambia el estado de parada asociado de * this y other .
Parámetros
| otro | - |
stop_token
para intercambiar los contenidos con
|
Valor de retorno
(ninguno)