| title | <sstream> functions | |
|---|---|---|
| description | Learn more about: <sstream> functions | |
| ms.date | 11/04/2016 | |
| f1_keywords |
|
The <sstream> header provides the following functions:
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);left
Reference to an sstream object.
right
Reference to an sstream object.
The template function executes left.swap(right).