Table of Contents

Strings

Character Types

String Types

std::string std::basic_string<char> C++98
std::wstring std::basic_string<wchar_t> C++98
std::u16string std::basic_string<char16_t> C++11
std::u32string std::basic_string<char32_t> C++11

Character Literals

String Literals

“” const char[] C++98
L“” const wchar_t[] C++98
u8“” const char[] UTF-8 C++11
u“” const char16_t[] UTF-16 C++11
U“” const char32_t[] UTF-32 C++11

Additionally, R“<delimiter>…<delimiter>” for “raw” literals.