public member function
Swap file buffers
Exchanges the contents and state of x and
*this. This includes the internal pointers and the locale object.
- Another filebuf object of the same type (i.e., instantiated with the same template parameters, charT and traits).
Modifies both filebuf objects (
*this and x).
Concurrent access to the same file stream buffer objects may introduce data races.
Basic guarantee: if an exception is thrown, the file stream buffer is in a valid state.
- Exchange values of two objects (function template)
- Move-assignment (public member function)