cpp/io/basic ios/swap

Exchanges the states of and, except for the associated  objects. rdbuf and 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 or std, which know how to correctly swap the associated streambuffers.

Return value
(none)