◐ Shell
clean mode source ↗

std::swap(std::basic_stringstream) - cppreference.com

来自cppreference.com

template< class CharT, class Traits, class Alloc >
void swap( std::basic_stringstream<CharT,Traits,Alloc>& lhs,
           std::basic_stringstream<CharT,Traits,Alloc>& rhs );
(C++11 起)

std::basic_stringstream 重载 std::swap 算法。交换 lhsrhs 的状态。相当于调用 lhs.swap(rhs)

参数

返回值

(无)

异常

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

示例

参阅