class
<string>

std::u16string

typedef basic_string<char16_t> u16string;
String of 16-bit characters
String class for 16-bit characters.

This is an instantiation of the basic_string class template that uses char16_t as the character type, with its default char_traits and allocator types (see basic_string for more info on the template).

Member types

member typedefinition
value_typechar16_t
traits_typechar_traits<char16_t>
allocator_typeallocator<char16_t>
referencechar16_t&
const_referenceconst char16_t&
pointerchar16_t*
const_pointerconst char16_t*
iteratora random access iterator to char16_t (convertible to const_iterator)
const_iteratora random access iterator to const char16_t
reverse_iteratorreverse_iterator<iterator>
const_reverse_iteratorreverse_iterator<const_iterator>
difference_typeptrdiff_t
size_typesize_t

Member functions

Note: The references to the members of its basic template (basic_string) are linked here.


Iterators:

Capacity:

Element access:

Modifiers:

String operations:

Member constants

Note: The references to the members of its basic template (basic_string) are linked here.

Non-member functions overloads

Note: The references to the general overloads of its basic template (basic_string) are shown here.