* @brief Inserts @b (in-place) one ::character at the given iterator position. * @throw `std::out_of_range` if `pos > size()` or `other_index > other.size()`. * @throw `std::length_error` if the string is too long. * @throw `std::bad_alloc` if the allocation fails. */
| 3689 | * @throw `std::bad_alloc` if the allocation fails. |
| 3690 | */ |
| 3691 | iterator insert(const_iterator it, char_type character) noexcept(false) sz_lifetime_bound_ { |
| 3692 | auto pos = range_length(cbegin(), it); |
| 3693 | insert(pos, string_view(&character, 1)); |
| 3694 | return begin() + pos; |
| 3695 | } |
| 3696 | |
| 3697 | /** |
| 3698 | * @brief Inserts @b (in-place) a ::character multiple times at the given iterator position. |