std::basic_iostream::swap

来自cppreference.com
< cpp‎ | io‎ | basic iostream

 
 
 
std::basic_iostream
成员函数
原文:
Member functions
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
受保护的成员函数
原文:
Protected member functions
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
basic_iostream::swap
 
protected:
void swap( basic_iostream& other );
(C++11 起)

Exchanges the state with another input/output stream object. Effectively calls basic_istream<CharT,Traits>::swap(other).

This member function is protected: it is called by the swap member functions of the derived stream classes std::basic_stringstream and std::basic_fstream, which know how to correctly swap the associated stream buffers.


[编辑] 参数

other - another stream to exchange the state with

[编辑] 返回值

*this