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.
A type that describes a specialization of the template class basic_string with elements of type char.
Other typedefs that specialize basic_string include wstring, u16string, and u32string.
typedef basic_string<char, char_traits<char>, allocator<char>> string;
Remarks
The following are equivalent declarations:
string str("");
basic_string<char> str("");
For a list of string constructors, see basic_string::basic_string.
Requirements
Header: <string>
Namespace: std