![]() |
Home | Libraries | People | FAQ | More |
Replace a part of the string.
constexprbasic_static_string& replace(basic_static_string::size_typepos,basic_static_string::size_typen1,basic_static_string::size_typen2,basic_static_string::value_typec);
Replaces rcount characters
starting at index pos
with n2 copies of c, where rcount
is std::min(n1, size() - pos).
Strong guarantee.
All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.
*this
|
Name |
Description |
|---|---|
|
|
The index to replace at. |
|
|
The number of characters to replace. |
|
|
The number of characters to replace with. |
|
|
The character to replace with. |
|
Type |
Thrown On |
|---|---|
|
|
|
|
|
|