basic_string::operator=

basic_string& operator=(value_type c);
basic_string& operator=(const value_type *s);
basic_string& operator=(const basic_string& rhs);

The operators each replace the sequence controlled by *this with the operand sequence, then return *this.