Namespaces
Variants

std::basic_stringstream:: swap

From cppreference.net

void swap ( basic_stringstream & other ) ;
(C++11以降)

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

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

目次

パラメータ

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

戻り値

(なし)

例外

実装定義の例外をスローする可能性があります。

関連項目

(C++11)
文字列ストリームをムーブする
(公開メンバ関数)
(C++11)
二つの basic_stringbuf オブジェクトを交換する
( std::basic_stringbuf<CharT,Traits,Allocator> の公開メンバ関数)