名稱空間
變體
操作

std::char_traits<char>::to_int_type, std::char_traits<wchar_t>::to_int_type, std::char_traits<char8_t>::to_int_type, std::char_traits<char16_t>::to_int_type, std::char_traits<char32_t>::to_int_type

來自 cppreference.com
< cpp‎ | string‎ | char traits
static int_type to_int_type( char_type c );
(C++11 起為 constexpr)
(C++11 起無異常丟擲)

c 轉換為 int_type

關於 X::to_int_type 的字元特性的一般要求,請參見 CharTraits

目錄

[編輯] 引數

c - 要轉換的值

[編輯] 返回值

等同於 c 的值。

[編輯] 複雜度

常數時間。

[編輯] 注意

對於 char_type 的每個有效值,必須存在一個唯一的 int_type 值,並且該值與 eof() 不同。