Replace range of characters with multiple characters.
- Parameters
-
| __i1 | Iterator referencing start of range to replace. |
| __i2 | Iterator referencing end of range to replace. |
| __n | Number of characters to insert. |
| __c | Character to insert. |
- Returns
- Reference to this string.
- Exceptions
-
Removes the characters in the range [__i1,__i2). In place, __n copies of __c are inserted. If the length of result exceeds max_size(), length_error is thrown. The value of the string doesn't change if an error is thrown.
Definition at line 2098 of file cow_string.h.
2099 {
2103 }
#define _GLIBCXX_DEBUG_PEDASSERT(_Condition)
iterator _M_ibegin() const noexcept
iterator _M_iend() const noexcept
constexpr basic_string & _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c)
Managing sequences of characters and character-like objects.