Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reference
Constructors
| Constructs a string that is empty or initialized by specific characters or that is a copy of all or part of some other string object or C-string. | 
Typedefs
| A type that represents the allocator class for a string object. | |
| A type that provides a random-access iterator that can access and read a const element in the string. | |
| A type that provides a pointer to a const element in a string. | |
| A type that provides a reference to a const element stored in a string for reading and performing const operations. | |
| A type that provides a random-access iterator that can read any const element in the string. | |
| A type that provides the difference between two iterators that refer to elements within the same string. | |
| A type that provides a random-access iterator that can read or modify any element in a string. | |
| An unsigned integral value initialized to –1 that indicates either "not found" or "all remaining characters" when a search function fails. | |
| A type that provides a pointer to a character element in a string or character array. | |
| A type that provides a reference to an element stored in a string. | |
| A type that provides a random-access iterator that can read or modify an element in a reversed string. | |
| An unsigned integral type for the number of elements in a string. | |
| A type for the character traits of the elements stored in a string. | |
| A type that represents the type of characters stored in a string. | 
Member Functions
| Adds characters to the end of a string. | |
| Assigns new character values to the contents of a string. | |
| Returns a reference to the element at a specified location in the string. | |
| Returns an iterator addressing the first element in the string. | |
| Converts the contents of a string as a C-style, null-terminated, string. | |
| Returns the largest number of elements that could be stored in a string without increasing the memory allocation of the string. | |
| Erases all elements of a string. | |
| Compares a string with a specified string to determine if the two strings are equal or if one is lexicographically less than the other. | |
| Copies at most a specified number of characters from an indexed position in a source string to a target character array. Deprecated. Use basic_string::_Copy_s instead. | |
| Copies at most a specified number of characters from an indexed position in a source string to a target character array. | |
| Converts the contents of a string into an array of characters. | |
| Tests whether the string contains characters. | |
| Returns an iterator that addresses the location succeeding the last element in a string. | |
| Removes an element or a range of elements in a string from a specified position. | |
| Searches a string in a forward direction for the first occurrence of a substring that matches a specified sequence of characters. | |
| Searches through a string for the first character that is not any element of a specified string. | |
| Searches through a string for the first character that matches any element of a specified string. | |
| Searches through a string for the last character that is not any element of a specified string. | |
| Searches through a string for the last character that is an element of a specified string. | |
| Returns a copy of the allocator object used to construct the string. | |
| Inserts an element or a number of elements or a range of elements into the string at a specified position. | |
| Returns the current number of elements in a string. | |
| Returns the maximum number of characters a string could contain. | |
| Adds an element to the end of the string. | |
| Returns an iterator to the first element in a reversed string. | |
| Returns an iterator that points just beyond the last element in a reversed string. | |
| Replaces elements in a string at a specified position with specified characters or characters copied from other ranges or strings or C-strings. | |
| Sets the capacity of the string to a number at least as great as a specified number. | |
| Specifies a new size for a string, appending or erasing elements as required. | |
| Searches a string in a backward direction for the first occurrence of a substring that matches a specified sequence of characters. | |
| Returns the current number of elements in a string. | |
| Copies a substring of at most some number of characters from a string beginning from a specified position. | |
| Exchange the contents of two strings. | 
Operators
| Appends characters to a string. | |
| Assigns new character values to the contents of a string. | |
| Provides a reference to the character with a specified index in a string. |