| 155 | |
| 156 | template<class InputIt> |
| 157 | void |
| 158 | string:: |
| 159 | assign( |
| 160 | InputIt first, |
| 161 | InputIt last, |
| 162 | std::random_access_iterator_tag) |
| 163 | { |
| 164 | auto dest = impl_.assign(static_cast< |
| 165 | size_type>(last - first), sp_); |
| 166 | while(first != last) |
| 167 | *dest++ = *first++; |
| 168 | } |
| 169 | |
| 170 | template<class InputIt> |
| 171 | void |