<istream> swap

Exchanges the elements of two stream objects.

template<class Elem, class Tr>
    void swap(
        basic_istream<Elem, Tr>& _Left,
        basic_istream<Elem, Tr>& _Right
    );
template<class Elem, class Tr>
    void swap(
        basic_iostream<Elem, Tr>& _Left,
        basic_iostream<Elem, Tr>& _Right
);

Parameters

  • _Left
    A stream.

  • _Right
    A stream.

Requirements

Header: <istream>

Namespace: std

See Also

Reference

<istream>

iostream Programming

iostreams Conventions