std::basic_ios::swap
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
protected: void swap( basic_ios& other ); |
(C++11 起) | |
交流*this和
other
状态,除了关联rdbuf
对象。 rdbuf()
other.rdbuf()返回相同的值,在调用之前.原文:
Exchanges the states of *this and
other
, except for the associated rdbuf
objects. rdbuf()
and other.rdbuf() returns the same values as before the call.该交换功能的保护:它被称为交换成员的派生的流类如std::basic_ofstream或std::basic_istringstream,知道如何正确地交换相关的streambuffers功能.
原文:
This swap function is protected: it is called by the swap member functions of the derived stream classes such as std::basic_ofstream or std::basic_istringstream, which know how to correctly swap the associated streambuffers.
目录 |
[编辑] 参数
other | - | basic_ios 对象交换的状态原文: the basic_ios object to exchange the state with |
[编辑] 返回值
(无)
[编辑] 例外
[编辑] 另请参阅
从另一个std::basic_ios除了 rdbuf 原文: moves from another std::basic_ios except for rdbuf (受保护的成员函数) |