在线文档教程
C++
输入/输出 | Input/output

std::basic_ios::widen

性病:基本[医]监督办::扩大

char_type widen( char c ) const;

转换字符c在当前区域设置中与其等效。结果被转换为char如果需要,可以使用流中的字符类型。

有效呼叫std::use_facet<std::ctype<char_type>>(getloc()).widen(c)...

参数

c-character to convert

返回值

字符转换为char_type...

另见

narrownarrows characters (public member function)
do_widen virtualconverts a character or characters from char to charT (virtual protected member function of std::ctype)
btowcwidens a single-byte narrow character to wide character, if possible (function)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/io/basic[医]IOS/加宽