std::char_traits<CharT>::to_int_type
来自cppreference.com
< cpp | string | char traits
| static int_type to_int_type( char_type c ); |
(C++11 前) | |
| static constexpr int_type to_int_type( char_type c ) noexcept; |
(C++11 起) | |
转换 char_type 的值到 int_type 。
参数
| c | - | 要转换的值 |
返回值
等价于 c 的值。
复杂度
常数。
注意
对于每个 char_type 的合法值,都有一个不同于 eof 的 int_type 值。