string::operator=
Copy assignment.
Synopsis
Description
Replace the contents with a copy of other
.
Complexity
Linear in other.size()
.
Exception Safety
Strong guarantee. Calls to memory_resource::allocate
may throw.
Return Value
*this
Return Value
*this
Return Value
*this
Return Value
*this
Parameters
Name | Description |
---|---|
|
The string to use as a source to copy from. |
|
The null-terminated character string. |
Exceptions
Type | Thrown On |
---|---|
|
|