名前空間
変種
操作

std::basic_stringstream::swap

提供: cppreference.com
 
 
入出力ライブラリ
入出力マニピュレータ
Cスタイルの入出力
バッファ
(C++98で非推奨)
ストリーム
抽象
ファイル入出力
文字列入出力
配列入出力
(C++98で非推奨)
(C++98で非推奨)
(C++98で非推奨)
同期化出力
エラーカテゴリインタフェース
(C++11)
 
 
void swap( basic_stringstream& other );
(C++11以上)

ストリームの状態を other と交換します。

これは basic_iostream<CharT, Traits>::swap(other) および rdbuf()->swap(*other.rdbuf()) を呼ぶことによって行われます。

目次

[編集] 引数

other - 状態を交換するストリーム

[編集] 戻り値

(なし)

[編集]

[編集] 関連項目

(C++11)
文字列ストリームをムーブします
(パブリックメンバ関数) [edit]
(C++11)
2つの basic_stringbuf オブジェクトを入れ替えます
(std::basic_stringbuf<CharT,Traits,Allocator>のパブリックメンバ関数) [edit]