Insert multiple characters.
- Parameters
-
| __pos | Index in string to insert at. |
| __n | Number of characters to insert |
| __c | The character to insert. |
- Returns
- Reference to this string.
- Exceptions
-
Inserts __n copies of character __c starting at index __pos. If adding characters causes the length to exceed max_size(), length_error is thrown. If __pos > length(), out_of_range is thrown. The value of the string doesn't change if an error is thrown.
Definition at line 1780 of file cow_string.h.
_Alloc_traits::size_type size_type
constexpr size_type _M_check(size_type __pos, const char *__s) const
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.