名前空間
変種
操作

std::swap(std::any)

提供: cppreference.com
< cpp‎ | utility‎ | any
 
 
ユーティリティライブラリ
 
 
void swap(any& lhs, any& rhs) noexcept;
(C++17以上)

std::swap アルゴリズムを std::any に対してオーバーロードします。 lhs.swap(rhs) を呼ぶことによって2つの any オブジェクトの内容を入れ替えます。

[編集] 引数

lhs, rhs-入れ替えるオブジェクト

[編集] 戻り値

(なし)

[編集] 関連項目

2つの any オブジェクトを入れ替えます
(パブリックメンバ関数) [edit]