traits::length(s)) basic_string& insert(size_type pos, const charT* s, size_type n) If pos > size(), throws out_of_range. Otherwise, equivalent to insert(begin() + pos, s, s + n) . basic_string& insert(size_type pos, size_type n, charT c) If pos > size(), throws out_of_range. Otherwise, equivalent to insert(begin() + pos, n, c) . basic_string& append(const basic_string& s) Equivalent to insert(end(), s.begin(), s.end()). basic_string& append(const basic_string& s, size_type pos, size_type n) If pos > s.size(), throws out_of_range. Otherwise, equivalent to insert(end(), s.begin() + pos, s.begin() + pos + min(n, s.size() – pos)). basic_string& append(const charT* s) Equivalent to insert(end(), s, s + traits::length(s)) . basic_string& append(const charT* s, size_type n) Equivalent to insert(end(), s, s + n). basic_string& append(size_type n, charT c) Equivalent to insert(end(), n, c). template<class InputIterator> basic_string& append (InputIterator first, InputIterator last) Equivalent to insert(end(), first, last). void push_back(charT c) Equivalent to insert(end(), c) basic_string& operator+=(const basic_string& s) Equivalent to append(s). basic_string& operator+=(const charT* s) Equivalent to append(s) basic_string& operator+=(charT c) Equivalent to push_back(c) basic_string& erase(size_type pos = 0, size_type n = npos) If pos > size(), throws out_of_range. Otherwise, equivalent to erase(begin() + pos, begin() + pos + min(n, size() – pos)). basic_string& assign(const basic_string& s) Synonym for operator= basic_string& assign(const basic_string& s, size_type pos, size_type n) Equivalent to (but probably faster than) clear() followed by insert(0, s, pos, n). basic_string& assign(const charT* s, size_type n) Equivalent to (but probably faster than) clear() followed by insert(0, s, n). basic_string& assign(const charT* s) Equivalent to (but probably faster than) clear() followed by insert(0, s). basic_string& replace(size_type pos, size_type n, const basic_string& s) Equivalent to erase(pos, n) followed by insert(pos, s). basic_string& replace(size_type pos, size_type n, const basic_string& s, size_type pos1, size_type n1) Equivalent to erase(pos, n) followed by
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату