<sstream> -Funktionen

swap

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

left
Ein Verweis auf ein sstream-Objekt.

right
Ein Verweis auf ein sstream-Objekt.

Hinweise

Die Vorlagenfunktion führt left.swap(right) aus.

Siehe auch

<sstream>