ith element with the characters in the range [f, l). void replace(size_t i, size_t n, const const_iterator& f, const const_iterator& l) Replaces the n elements beginning with the ith element with the characters in the range [f, l). void replace(size_t i, size_t n, const iterator& f, const iterator& l) Replaces the n elements beginning with the ith element with the characters in the range [f, l). void replace(size_t i, charT c) Replaces the ith element with the character c. void replace(size_t i, const rope& x) Replaces the ith element with elements from the rope x. void replace(size_t i, const charT* s) Replaces the ith element with a C string: the sequence of characters beginning with *s and up to, but not including, the first null character. void replace(size_t i, const charT* s, size_t n) Replaces the ith element with the elements in the range [s, s + n). void replace(size_t i, const charT* f, const charT* l) Replaces the ith element with the range [f, l). void replace(size_t i, const const_iterator& f, const const_iterator& l) Replaces the ith element with the range [f, l). void replace(size_t i, const iterator& f, const iterator& l) Replaces the ith element with the range [f, l). rope substr(iterator f) const Returns a new rope with a single element, *f. [4] rope substr(const_iterator f) const Returns a new rope with a single element, *f. [4] rope substr(iterator f, iterator l) const Returns a new rope that consists of the range [f, l). [4] rope substr(const_iterator f, const_iterator l) const Returns a new rope that consists of the range [f, l). [4] rope substr(size_t i, size_t n = 1) const Returns a new rope whose elements are the n characters starting at the position i. [4]. void copy(charT* buf) const Copies the characters in a rope into buf. size_type copy(size_type pos, size_type n, charT* buf) Copies n characters, starting at position pos in the rope, into buf. If the rope contains fewer than pos + n characters, then instead it only copies size() – pos characters. const charT* c_str() const Returns a pointer to a null-terminated sequence of characters that contains all of the characters in a rope. [5] [6] The resulting sequence of characters is valid at least as long as the rope remains valid and unchanged. Note that the first invocation of this operation on long strings is slow: it is linear in the length of the rope. void delete_c_str() Reclaims the internal storage used by c_str. Note that
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

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

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