std::swap(std::packaged_task)
Von cppreference.com
< cpp | thread | packaged task
| template< class Function, class... Args > void swap( packaged_task<Function(Args...)> &lhs, |
(seit C++11) | |
Spezialisiert den std::swap Algorithmus für std::packaged_task. Vertauscht den Zustand von lhs mit dem von rhs. Ruft effektiv lhs.swap(rhs) auf.
Inhalt |
[edit] Parameter
| lhs, rhs | - | Die zu vertauschenden packaged_tasks |
[edit] Rückgabewert
(keine)
[edit] Beispiel
| Dieser Abschnitt ist unvollständig Grund: kein Beispiel |
[edit] Siehe auch
| vertauscht zwei Task-Objekte (public member function) |