<sstream> swap

Tauscht die Werte zwischen zwei sstream-Objekten aus.

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

Parameter

Description

_Left

Verweis auf ein Objekt sstream.

_Right

Verweis auf ein Objekt sstream.

Hinweise

Die Vorlagenfunktion führt _Left.swap(_Right) aus.

Anforderungen

Header: <sstream>

Namespace: std

Siehe auch

Referenz

<sstream>

Programmierung der iostream-Headerdatei

iostreams Konventionen