...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Assign a value to the string.
string& operator=( char const* s);
Replaces the contents with those of the null terminated string pointed
to by s
. The length of
the string is determined by the first null character.
Linear in std::strlen(s)
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
*this
Name |
Description |
---|---|
|
The null-terminated character string. |
Type |
Thrown On |
---|---|
|
|