Export (0) Print
Expand All

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;

The following are equivalent declarations:

    string str("");

    basic_string<char> str("");

For a list of string constructors, see basic_string::basic_string.

Header: <string>

Namespace: std

Show:
© 2014 Microsoft