std::shared_future<T>::operator=
Von cppreference.com
< cpp | thread | shared future
| (1) | ||
shared_future& operator=( const shared_future& other ); |
(seit C++11) (bis C++17) |
|
| shared_future& operator=( const shared_future& other ) noexcept; |
(seit C++17) | |
| shared_future& operator=( shared_future&& other ) noexcept; |
(2) | (seit C++11) |
Weist den Inhalt eines anderen shared_future zu.
1) Gibt jeglichen gemeinsamen Zustand frei und weist den Inhalt von other *this zu. Nach der Zuweisung gilt this->valid() == other.valid().
2) Gibt jeglichen gemeinsamen Zustand frei und weist den Inhalt von other mittels Move-Zuweisung *this zu. Nach der Zuweisung gilt other.valid() == false und this->valid() gibt den gleichen Wert zurück wie other.valid() vor der Zuweisung.
[edit] Parameter
| Sonstiges | - | Ein std::shared_future, dessen Zustand an *this übertragen wird. |
[edit] Rückgabewert
*this