31 Input/output library [input.output]

31.8 String-based streams [string.streams]

31.8.5 Class template basic_stringstream [stringstream]

31.8.5.3 Swap [stringstream.swap]

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