在线文档教程
C++
输入/输出 | Input/output

std::basic_stringstream::swap

性病:基本[医]字符串::交换

void swap( basic_stringstream& other (since C++11)

将流的状态与other...

实现的办法是调用basic_iostream<CharT, Traits>::swap(other)和rdbuf()->swap(*other.rdbuf())...

参数

other-stream to exchange the state with

返回值

%280%29

另见

operator= (C++11)moves the string stream (public member function)
swap (C++11)swaps two basic_stringbuf objects (public member function of std::basic_stringbuf)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/io/basic[医]字符串/交换