...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( char const* s,std::size_t
count);
Replaces the contents with copies of the characters in the range {s, s+count)
. This range can contain null characters.
Linear in count
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
*this
Name |
Description |
---|---|
|
The number of characters to copy. |
|
A pointer to a character string used to copy from. |
Type |
Thrown On |
---|---|
boost::system::system_error |
|