Share via


basic_istream::swap

Exchanges the contents of two basic_istream objects.

void swap(basic_istream& _Right);

Parameters

  • _Right
    An lvalue reference to a basic_istream object.

Remarks

The member function calls basic_ios::swap(_Right). It also exchanges the extraction count with the extraction count for _Right.

Requirements

Header: <istream>

Namespace: std

See Also

Reference

basic_istream Class

basic_iostream Class

<istream>

Lvalues and Rvalues

Other Resources

basic_istream Members

basic_iostream Members

<istream> Members