Assign characters to a string.
string& assign( string&& other);
Replace the contents with those of
using move semantics.
&other == this, do nothing. Otherwise,
*other.storage() == *this->storage(), ownership of the underlying memory is transferred in constant time, with no possibility of exceptions. After construction, the moved-from string behaves as if newly constructed with its current
*other.storage() != *this->storage(), a copy of the characters in
otheris made. In this case, the moved-from container is not changed.
Constant or linear in
Strong guarantee. Calls to
The string to assign from.