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 算法。交换 lhs 与 rhs 的状态。相当于调用 lhs.swap(rhs)。
参数
返回值
(无)
异常
可能会抛出由实现定义的异常。