<sstream> swap
Меняет местами значения 2 между объектами sstream.
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
);
Параметры
Параметр |
Описание |
---|---|
_Left |
Используйте в sstream объект. |
_Right |
Используйте в sstream объект. |
Заметки
Шаблонная функция выполняет _Left.swap(_Right).
Требования
Заголовок:<sstream>
Пространство имен: std