std::swap(std::any)
提供: cppreference.com
ユーティリティライブラリ
|
std::any
メンバ関数 | ||||
変更 | ||||
観察 | ||||
非メンバ関数 | ||||
swap(std::any) | ||||
void swap(any& lhs, any& rhs) noexcept; | (C++17以上) | |
std::swap アルゴリズムを std::any に対してオーバーロードします。 lhs.swap(rhs) を呼ぶことによって2つの any
オブジェクトの内容を入れ替えます。
[編集] 引数
lhs, rhs | - | 入れ替えるオブジェクト |
[編集] 戻り値
(なし)
[編集] 関連項目
2つの any オブジェクトを入れ替えます(パブリックメンバ関数) [edit] |