basic_streambuf::swap
Exchanges the values in this object for the values in the provided basic_streambuf object.
void swap(
basic_streambuf& _Right
);
Parameters
Parameter |
Description |
---|---|
_Right |
An lvalue reference to the basic_streambuf object that is used to exchange values. |
Remarks
The protected member function exchanges with _Right all the pointers controlling the input buffer and the output buffer. It also exchanges _Right.getloc() with the locale object.
Requirements
Header: <streambuf>
Namespace: std