| 977 | } |
| 978 | |
| 979 | iterator insert(const_iterator pos, value_type c) |
| 980 | { |
| 981 | auto idx = static_cast<size_type>(pos - begin()); |
| 982 | |
| 983 | ensure_free_space_(1); |
| 984 | copy_backward_(begin() + idx, end(), end() + 1); |
| 985 | traits_type::assign(data_[idx], c); |
| 986 | |
| 987 | ++size_; |
| 988 | ensure_null_terminator_(); |
| 989 | |
| 990 | return begin() + idx; |
| 991 | } |
| 992 | |
| 993 | iterator insert(const_iterator pos, size_type n, value_type c) |
| 994 | { |