Partager via


basic_ios::swap

Exchanges the values in this basic_ios object for those of another basic_ios object. However, the pointers to the stream buffers are not swapped.

void swap(basic_ios&& _Right);

Parameters

  • _Right
    The basic_ios object that is used to exchange values.

Remarks

The protected member function exchanges all the values stored in _Right with *this except the stored stream buffer pointer.

Requirements

Header: <ios>

Namespace: std

See Also

Reference

basic_ios Class

Lvalues and Rvalues

iostream Programming

iostreams Conventions