std::swap(std::basic_stringstream)
From cppreference.com
< cpp | io | basic stringstream
| ヘッダ <sstream> で定義 |
||
| template< class CharT, class Traits, class Alloc > void swap( std::basic_stringstream<CharT,Traits,Alloc>& lhs, |
(C++11以降) | |
std::swap アルゴリズムの std::basic_stringstream 用のオーバーロード。 lhs と rhs の状態を交換します。 実質的に lhs.swap(rhs) を呼び出します。
目次 |
[編集] パラメータ
| lhs, rhs | - | 状態を交換するストリーム |
[編集] 戻り値
(なし)
[編集] 例外
実装定義の例外をスローする場合があります。
[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
| (C++11) |
2つの文字列ストリームをスワップする (public メンバ関数) |