...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Assign characters to a string.
string
& assign(string
const& other);
Replace the contents with a copy of other
.
Linear in other.size()
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
*this
Name |
Description |
---|---|
|
The string to use as a source to copy from. |