<sstream>
template< class CharT, class Traits, class Alloc > void swap( std::basic_stringstream<CharT,Traits,Alloc>& lhs, std::basic_stringstream<CharT,Traits,Alloc>& rhs );
对 std::basic_stringstream 重载 std::swap 算法。交换 lhs 与 rhs 的状态。相当于调用 lhs.swap(rhs)。
std::basic_stringstream
lhs
rhs
lhs.swap(rhs)
(无)
可能会抛出由实现定义的异常。