命名空间
变体
操作

std::swap(std::basic_ostringstream)

来自 cppreference.cn
定义于头文件 <sstream>
template< class CharT, class Traits, class Alloc >

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

           std::basic_ostringstream<CharT,Traits,Alloc>& rhs );
(C++11 起)

重载 std::swap 算法以用于 std::basic_ostringstream。交换 lhs 的状态与 rhs 的状态。实际上调用 lhs.swap(rhs)

目录

[编辑] 参数

lhs, rhs - 要交换其状态的流

[编辑] 返回值

(无)

[编辑] 异常

可能抛出实现定义的异常。

[编辑] 示例

[编辑] 参阅

(C++11)
交换两个字符串流
(public member function) [编辑]