31 Input/output library [input.output]

31.8 String-based streams [string.streams]

31.8.4 Class template basic_ostringstream [ostringstream]

31.8.4.3 Swap [ostringstream.swap]

void swap(basic_ostringstream& rhs);
Effects: Equivalent to: basic_ostream<charT, traits>::swap(rhs); sb.swap(rhs.sb);
template<class charT, class traits, class Allocator> void swap(basic_ostringstream<charT, traits, Allocator>& x, basic_ostringstream<charT, traits, Allocator>& y);
Effects: Equivalent to: x.swap(y).