funciones<sstream>
swap
Intercambia los valores entre dos objetos 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);
Parámetros
left
Referencia a un objeto sstream
.
right
Referencia a un objeto sstream
.
Comentarios
La función de plantilla ejecuta left.swap(right)
.