basic_string::operator=

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

Each operator replaces the sequence controlled by *this with the operand sequence, then returns *this.