Sdílet prostřednictvím


<sstream> swap

Výměny hodnot mezi dvěma sstream objektů.

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
    );

Parametry

Parametr

Description

_Left

Odkaz sstream objektu.

_Right

Odkaz sstream objektu.

Poznámky

The template function executes _Left.swap(_Right).

Požadavky

Záhlaví: <sstream>

Obor názvů: std

Viz také

Referenční dokumentace

<sstream>

iostream programování

iostreams konvence