<string>
Defines the container template class basic_string and various supporting templates.
For more information about basic_string, see basic_string Class
#include <string>
Remarks
The C++ language and the Standard C++ Library support two types of strings:
Null-terminated character arrays often referred to as C strings.
Template class objects, of type basic_string, that handle all char-like template arguments.
Typedefs
A type that describes a specialization of the template class basic_string with elements of type char as a string. |
|
A type that describes a specialization of the template class basic_string with elements of type wchar_t as a wstring. |
|
A type that describes a specialization of the template class basic_string based on elements of type char16_t. |
|
A type that describes a specialization of the template class basic_string based on elements of type char32_t. |
Operators
Concatenates two string objects. |
|
Tests if the string object on the left side of the operator is not equal to the string object on the right side. |
|
Tests if the string object on the left side of the operator is equal to the string object on the right side. |
|
Tests if the string object on the left side of the operator is less than to the string object on the right side. |
|
Tests if the string object on the left side of the operator is less than or equal to the string object on the right side. |
|
A template function that inserts a string into the output stream. |
|
Tests if the string object on the left side of the operator is greater than to the string object on the right side. |
|
Tests if the string object on the left side of the operator is greater than or equal to the string object on the right side. |
|
A template function that extracts a string from the input stream. |
Specialized Template Functions
Exchanges the arrays of characters of two strings. |
|
Converts a character sequence to a double. |
|
Converts a character sequence to a float. |
|
Converts a character sequence to an integer. |
|
Converts a character sequence to a long double. |
|
Converts a character sequence to a long long. |
|
Converts a character sequence to an unsigned long. |
|
Converts a character sequence to an unsigned long long. |
|
Converts a value to a string. |
|
Converts a value to a wide string. |
Functions
Extract strings from the input stream line by line. |
Classes
A template class that describes objects that can store a sequence of arbitrary character-like objects. |
|
A template class that describes attributes associated with a character of type CharType |
Specializations
A struct that is a specialization of the template struct char_traits<CharType> to an element of type char. |
|
A struct that is a specialization of the template struct char_traits<CharType> to an element of type wchar_t. |
|
A struct that is a specialization of the template struct char_traits<CharType> to an element of type char16_t. |
|
A struct that is a specialization of the template struct char_traits<CharType> to an element of type char32_t. |
Requirements
Header: <string>
Namespace: std
See Also
Reference
Thread Safety in the C++ Standard Library