std::stop_source:: operator=
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
|
stop_source::operator=
|
||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
| Helper tags | ||||
|
std::
stop_source
&
operator
=
(
const
std::
stop_source
&
other
)
noexcept
;
|
(1) | (C++20 이후) |
|
std::
stop_source
&
operator
=
(
std::
stop_source
&&
other
)
noexcept
;
|
(2) | (C++20 이후) |
stop-state를 other 의 상태로 대체합니다.
1)
other
의 stop-state를
*
this
의 stop-state에 복사 할당합니다.
stop_source
(
other
)
.
swap
(
*
this
)
와 동등합니다.
2)
other
의 stop-state를
*
this
의 stop-state로 이동 할당합니다. 할당 후,
*
this
는
other
의 이전 stop-state를 포함하고,
other
는 stop-state를 갖지 않습니다.
stop_source
(
std
::
move
(
other
)
)
.
swap
(
*
this
)
와 동등합니다.
매개변수
| other | - |
다른
stop_source
객체와 정지 상태를 공유하거나 정지 상태를 획득하기 위한 객체
|