<string>

std::wstring

typedef basic_string<wchar_t> wstring;
寬字串
用於寬字元的字串類。

這是basic_string類模板的一個例項化,它使用wchar_t作為字元型別,並使用其預設的char_traitsallocator型別(有關該模板的更多資訊,請參見basic_string)。

成員型別

成員型別定義
value_typewchar_t
traits_typechar_traits<wchar_t>
allocator_typeallocator<wchar_t>
引用wchar_t&
const_referenceconst wchar_t&
指標wchar_t*
const_pointerconst wchar_t*
iterator一個指向wchar_t(可轉換為const_iterator)
const_iterator一個指向const wchar_t
reverse_iteratorreverse_iterator<iterator>
const_reverse_iteratorreverse_iterator<const_iterator>
difference_typeptrdiff_t
size_typesize_t

成員函式

注意:此處連結了其基本模板(basic_string)的成員的引用。


迭代器:

容量:

元素訪問:

修改器:

字串操作:

成員常量

注意:此處連結了其基本模板(basic_string)的成員的引用。

非成員函式過載

注意:此處顯示了其基本模板(basic_string)的通用過載的引用。