std::future<T>:: operator=
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::future
| Member functions | ||||
|
future::operator=
|
||||
| Getting the result | ||||
| State | ||||
|
future
&
operator
=
(
future
&&
other
)
noexcept
;
|
(1) | (начиная с C++11) |
|
future
&
operator
=
(
const
future
&
other
)
=
delete
;
|
(2) | (начиная с C++11) |
Присваивает содержимое другого объекта future.
1)
Освобождает любое разделяемое состояние и перемещает присваивает содержимое
other
в
*
this
. После присваивания,
other.
valid
(
)
==
false
и
this
-
>
valid
(
)
вернет то же значение, что и
other.
valid
(
)
до присваивания.
Параметры
| other | - |
a
std::future
that will transfer state to
*
this
|
Возвращаемое значение
* this