public static member function
<string>
static int_type to_int_type (const char_type& c);
static constexpr int_type to_int_type (char_type c) noexcept;
To int type
Returns theint_typeequivalent of c.
All character traits types shall implement the function so that the returned value can be transformed back to itschar_typevalue using char_traits::to_char_type.
In the standard specializations of char_traits, this function performs the corresponding built-in integral promotion.
返回值
要放回的字符的int_typeequivalent of c.
成员类型int_type是一个整数类型,可以表示 eof() 或任何有效的字符值。