Export (0) Print
Expand All

<sstream> swap

Exchanges the values between two sstream objects.

template<class Elem, class Tr, class Alloc>
    void swap(
        basic_stringbuf<Elem, Tr, Alloc>& _Left,
        basic_stringbuf<Elem, Tr, Alloc>& _Right
    );
template<class Elem, class Tr, class Alloc>
    void swap(
        basic_istringstream<Elem, Tr, Alloc>& _Left,
        basic_istringstream<Elem, Tr, Alloc>& _Right
    );
template<class Elem, class Tr, class Alloc>
    void swap(
        basic_ostringstream<Elem, Tr, Alloc>& _Left,
        basic_ostringstream<Elem, Tr, Alloc>& _Right
    );
template<class Elem, class Tr, class Alloc>
    void swap(
        basic_stringstream<Elem, Tr, Alloc>& _Left,
        basic_stringstream<Elem, Tr, Alloc>& _Right
    );

Parameter

Description

_Left

Reference to an sstream object.

_Right

Reference to an sstream object.

The template function executes _Left.swap(_Right).

Header: <sstream>

Namespace: std

Show:
© 2014 Microsoft