std::swap(std::function)
来自cppreference.com
< cpp | utility | functional | function
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| template< class R, class Args... > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs ); |
||
过载的std::swap为std::function算法。交易
lhs的rhs的状态。有效地调用lhs.swap(rhs).Original:
Overloads the std::swap algorithm for std::function. Exchanges the state of
lhs with that of rhs. Effectively calls lhs.swap(rhs).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| lhs, rhs | - | 多态函数包装交换的状态
Original: polymorphic function wrappers whose states to swap The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 例外
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 交换的内容 Original: swaps the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |