![]() |
Home | Libraries | People | FAQ | More |
Assign to the string.
template< [role red error.param neither has a declname nor a 'class ' prefix in the type][role red error.param neither has a declname nor a 'class ' prefix in the type][role red error.param neither has a declname nor a 'class ' prefix in the type][role red error.param neither has a declname nor a 'class ' prefix in the type]> constexpr basic_static_string& assign( InputIterator first, InputIterator last);
Replaces the contents with the characters in the range {first, last)
.
Linear in std::distance(first, last)
.
Strong guarantee.
Type |
Description |
---|---|
|
The type of the iterators. |
InputIterator
satisfies
InputIterator.
*this
Name |
Description |
---|---|
|
An iterator referring to the first character to assign. |
|
An iterator past the end of the range to assign from. |
Type |
Thrown On |
---|---|
|
std::distance(first, last) > |