swap
Collapse the table of content
Expand the table of content

<ostream> swap

 

Exchanges the values of two basic_ostream objects.

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

_Left

An lvalue reference to a basic_ostream object.

_Right

An lvalue reference to a basic_ostream object.

The template function swap executes _Left.swap(_Right).

Requirements

Header: <ostream>

Namespace: std

Show:
© 2016 Microsoft