27 Input/output library [input.output]

27.8 String-based streams [string.streams]

27.8.3 Class template basic_­istringstream [istringstream]

27.8.3.2 Assignment and swap [istringstream.assign]

basic_istringstream& operator=(basic_istringstream&& rhs);
Effects: Move assigns the base and members of *this from the base and corresponding members of rhs.
Returns: *this.
void swap(basic_istringstream& rhs);
Effects: Exchanges the state of *this and rhs by calling basic_­istream<charT, traits>::swap(rhs) and sb.swap(rhs.sb).
template<class charT, class traits, class Allocator> void swap(basic_istringstream<charT, traits, Allocator>& x, basic_istringstream<charT, traits, Allocator>& y);
Effects: As if by x.swap(y).