basic_ostream::swap

Exchanges the values of this basic_ostream object for the values of the provided basic_ostream.

void swap(
    basic_ostream& _Right
);

Parameters

  • _Right
    A reference to a basic_ostream object.

Remarks

The member function calls basic_ios::swap(_Right) to exchange the contents of this object for the contents of _Right.

Requirements

Header: <ostream>

Namespace: std

See Also

Reference

<ostream>

iostream Programming

iostreams Conventions

Other Resources

<ostream> Members