名前空間
変種
操作

「cpp/utility/functional/function/swap」の版間の差分

提供: cppreference.com
< cpp‎ | utility‎ | functional‎ | function
(Fix some translations)
 
(1人の利用者による、間の1版が非表示)
1行: 1行:
{{tr_note}}
 
 
{{cpp/utility/functional/function/title | swap}}
 
{{cpp/utility/functional/function/title | swap}}
 
{{cpp/utility/functional/function/navbar}}
 
{{cpp/utility/functional/function/navbar}}
{{ddcl | notes={{mark since c++11}} |
+
{{ddcl | sincec++11 |
void swap( function& other );
+
void swap( function& other ) ;
 
}}
 
}}
  
{{tr|交流{{c|*this}}の格納された呼び出し可能オブジェクトと{{tt|other}}.|Exchanges the stored callable objects of {{c|*this}} and {{tt|other}}.}}
+
{{c|*this}} {{tt|other}} callable
  
===パラメータ===
+
======
 
{{par begin}}
 
{{par begin}}
{{par | other |{{tr| で格納された呼び出し可能オブジェクトを交換する関数ラッパー| function wrapper to exchange the stored callable object with}}}}
+
{{par | other | callable }}
 
{{par end}}
 
{{par end}}
  
===値を返します===
+
======
 
(なし)
 
(なし)
 
===例外===
 
{{noexcept}}
 
  
 
[[de:cpp/utility/functional/function/swap]]
 
[[de:cpp/utility/functional/function/swap]]

2018年3月21日 (水) 06:25時点における最新版

 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
関数オブジェクト
関数ラッパー
(C++11)
(C++11)
関数の部分適用
(C++20)
(C++11)
関数呼び出し
(C++17)
恒等関数オブジェクト
(C++20)
参照ラッパー
(C++11)(C++11)
演算子ラッパー
否定子
(C++17)
検索子
制約付き比較子
古いバインダとアダプタ
(C++17未満)
(C++17未満)
(C++17未満)
(C++17未満)
(C++17未満)(C++17未満)(C++17未満)(C++17未満)
(C++20未満)
(C++20未満)
(C++17未満)(C++17未満)
(C++17未満)(C++17未満)

(C++17未満)
(C++17未満)(C++17未満)(C++17未満)(C++17未満)
(C++20未満)
(C++20未満)
 
 
void swap( function& other ) noexcept;
(C++11以上)

*thisother の格納されている callable なオブジェクトを交換します。

[編集] 引数

other - 格納されている callable なオブジェクトを交換する関数ラッパー

[編集] 戻り値

(なし)