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) | (desde C++11) |
|
future
&
operator
=
(
const
future
&
other
)
=
delete
;
|
(2) | (desde C++11) |
Asigna el contenido de otro objeto future.
1)
Libera cualquier estado compartido y asigna por movimiento el contenido de
other
a
*
this
. Después de la asignación,
other.
valid
(
)
==
false
y
this
-
>
valid
(
)
producirá el mismo valor que
other.
valid
(
)
antes de la asignación.
Parámetros
| otro | - |
un
std::future
que transferirá estado a
*
this
|
Valor de retorno
* this