Assignment & Addition Operator basic_string

Appends the string rhs to the current string.

  string& operator+= (const string& rhs);
  string& operator+= (const charT* s);
  string& operator+= (charT s);  
Remarks

Both of the overloaded functions construct a string object from the input s, and append it to the current string.

The assignment operator returns the this pointer.