「cpp/utility/functional/function/swap」の版間の差分
提供: cppreference.com
< cpp | utility | functional | function
細 (Fix some translations) |
|||
(1人の利用者による、間の1版が非表示) | |||
1行: | 1行: | ||
− | |||
{{cpp/utility/functional/function/title | swap}} | {{cpp/utility/functional/function/title | swap}} | ||
{{cpp/utility/functional/function/navbar}} | {{cpp/utility/functional/function/navbar}} | ||
− | {{ddcl | | + | {{ddcl | sincec++11 | |
− | void swap( function& other ); | + | void swap( function& other ) ; |
}} | }} | ||
− | + | {{c|*this}} {{tt|other}} callable | |
− | === | + | ====== |
{{par begin}} | {{par begin}} | ||
− | {{par | other | | + | {{par | other | callable }} |
{{par end}} | {{par end}} | ||
− | === | + | ====== |
(なし) | (なし) | ||
− | |||
− | |||
− | |||
[[de:cpp/utility/functional/function/swap]] | [[de:cpp/utility/functional/function/swap]] |
2018年3月21日 (水) 06:25時点における最新版
void swap( function& other ) noexcept; |
(C++11以上) | |
*this と other
の格納されている callable なオブジェクトを交換します。
[編集] 引数
other | - | 格納されている callable なオブジェクトを交換する関数ラッパー |
[編集] 戻り値
(なし)