<sstream> swap
Wymienia wartości między dwoma sstream obiektów.
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 |
Opis |
---|---|
_Left |
Odniesienie do sstream obiektu. |
_Right |
Odniesienie do sstream obiektu. |
Uwagi
The template function executes _Left.swap(_Right).
Wymagania
Nagłówek: <sstream>
Obszar nazw: std