...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=(string_view
s);
Replaces the contents with those of a string view. This view can contain null characters.
Linear in s.size()
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
*this
Name |
Description |
---|---|
|
The string view to copy from. |
Type |
Thrown On |
---|---|
boost::system::system_error |
|