| 199 | |
| 200 | template<typename allocator> |
| 201 | inline void basic_string<allocator>::append(const char* first, const char* last) { |
| 202 | const ptrdiff_t newsize = ((m_last - m_first) + (last - first) + 1); |
| 203 | if (m_first + newsize > m_capacity) |
| 204 | reserve((newsize * 3) / 2); |
| 205 | |
| 206 | for (; first != last; ++m_last, ++first) |
| 207 | *m_last = *first; |
| 208 | *m_last = 0; |
| 209 | } |
| 210 | |
| 211 | template<typename allocator> |
| 212 | inline void basic_string<allocator>::assign(const char* sz, size_t n) { |
no outgoing calls
no test coverage detected