std::basic_ios::swap

std::basic_ios::swap

protected:
void swap( basic_ios& other );
(since C++11)

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.

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.

Parameters

other - the basic_ios object to exchange the state with

Return value

(none).

Exceptions

noexcept specification:
noexcept

See also

(C++11)
moves from another std::basic_ios except for rdbuf
(protected member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/io/basic_ios/swap

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部