Container Returns the largest possible size of the string. size_type capacity() const basic_string See below. bool empty() const Container true if the string's size is 0. reference operator[](size_type n) Random Access Container Returns the n'th character. const_reference operator[](size_type n) const Random Access Container Returns the n'th character. const charT* c_str() const basic_string Returns a pointer to a null-terminated array of characters representing the string's contents. const charT* data() const basic_string Returns a pointer to an array of characters (not necessarily null-terminated) representing the string's contents. basic_string() Container Creates an empty string. basic_string(const basic_string& s, size_type pos = 0, size_type n = npos) Container, basic_string Generalization of the copy constructor. basic_string(const charT*) basic_string Construct a string from a null-terminated character array. basic_string(const charT* s, size_type n) basic_string Construct a string from a character array and a length. basic_string(size_type n, charT c) Sequence Create a string with n copies of c. template <class InputIterator> basic_string(InputIterator first, InputIterator last) Sequence Create a string from a range. ~basic_string() Container The destructor. basic_string& operator=(const basic_string&) Container The assignment operator basic_string& operator=(const charT* s) basic_string Assign a null-terminated character array to a string. basic_string& operator=(charT c) basic_string Assign a single character to a string. void reserve(size_t) basic_string See below. void swap(basic_string&) Container Swaps the contents of two strings.
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

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

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