std::swap(std::packaged_task)
From cppreference.com
Template:cpp/thread/packaged task/sidebar Template:ddcl list begin <tr class="t-dcl ">
<td class="t-dcl-nopad">template< class Function, class Args... >
void swap( packaged_task<Function(Args...)> &lhs, packaged_task<Function(Args...)> &rhs );
</td>
void swap( packaged_task<Function(Args...)> &lhs, packaged_task<Function(Args...)> &rhs );
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Overloads the Template:cpp algorithm for Template:cpp. Exchanges the state of lhs
with that of rhs
. Effectively calls Template:cpp.
Contents |
Parameters
lhs, rhs | - | packaged tasks whose states to swap |
Return value
(none)
Exceptions
noexcept specification:
noexcept