string (C++ STL <string>)

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

See Also

Reference

<string>

basic_string Class