29 Input/output library [input.output]

29.8 String-based streams [string.streams]

29.8.5 Class template basic_­stringstream [stringstream]

29.8.5.2 Assignment and swap [stringstream.assign]

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).