2 sstream の二つのオブジェクトの値を交換します。
template<class Elem, class Tr, class Alloc>
void swap(
basic_stringbuf<Elem, Tr, Alloc>& _Left,
basic_stringbuf<Elem, Tr, Alloc>& _Right
);
template<class Elem, class Tr, class Alloc>
void swap(
basic_istringstream<Elem, Tr, Alloc>& _Left,
basic_istringstream<Elem, Tr, Alloc>& _Right
);
template<class Elem, class Tr, class Alloc>
void swap(
basic_ostringstream<Elem, Tr, Alloc>& _Left,
basic_ostringstream<Elem, Tr, Alloc>& _Right
);
template<class Elem, class Tr, class Alloc>
void swap(
basic_stringstream<Elem, Tr, Alloc>& _Left,
basic_stringstream<Elem, Tr, Alloc>& _Right
);
パラメーター
パラメーター |
説明 |
|---|---|
_Left |
sstream のオブジェクトへの参照。 |
_Right |
sstream のオブジェクトへの参照。 |
解説
このテンプレート関数は _Left.swap(_Right)を実装します。
必要条件
ヘッダー: <sstream>
名前空間: std