名前空間
変種
操作

std::swap(std::basic_istringstream)

From cppreference.com
 
 
 
 
ヘッダ <sstream> で定義
template< class CharT, class Traits, class Alloc >

void swap( std::basic_istringstream<CharT,Traits,Alloc>& lhs,

           std::basic_istringstream<CharT,Traits,Alloc>& rhs );
(C++11以降)

std::swap アルゴリズムの std::basic_istringstream のオーバーロード。 lhs の状態を rhs の状態と交換します。 効率的には lhs.swap(rhs) を呼び出します。

目次

[編集] パラメータ

lhs, rhs - 状態を交換するストリーム

[編集] 戻り値

(なし)

[編集] 例外

実装定義の例外をスローする場合があります。

[編集]

[編集] 関連項目

(C++11)
2つの文字列ストリームをスワップする
(public メンバ関数) [編集]
English 日本語 中文(简体) 中文(繁體)