<sstream>
functions
swap
Exchanges the values between two sstream
objects.
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);
Parameters
left
Reference to an sstream
object.
right
Reference to an sstream
object.
Remarks
The template function executes left.swap(right)
.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for