Udostępnij za pośrednictwem


<sstream>, funkcje

Wymiany

swap

Wymienia wartości między dwoma sstream obiektami.

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

Lewej
Odwołanie do sstream obiektu.

Prawo
Odwołanie do sstream obiektu.

Uwagi

Funkcja szablonu left.swap(right)wykonuje polecenie .

Zobacz też

<sstream>