void swap(basic_string<charT,traits,Allocator>& s);
Postcondition: *this contains the same sequence of characters that was in s, s contains the same sequence of characters that was in *this.
Throws: Nothing.
Complexity: constant time.