std::char_traits<CharT>::to_char_type
提供: cppreference.com
<tbody>
</tbody>
<tbody class="t-dcl-rev ">
</tbody><tbody>
</tbody>
static char_type to_char_type( int_type c ); |
(C++11未満) | |
static constexpr char_type to_char_type( int_type c ) noexcept; |
(C++11以上) | |
int_type の値を char_type に変換します。 同等な値がない場合 (c が eof() 値のコピーであるときなど)、結果は未規定です。
形式的には、 X::eq_int_type(c, X::to_int_type(x)) が true であるような値 x、そのような x が存在しない場合は未規定の値を返します。
引数
| c | - | 変換する値 |
戻り値
c と同等な値。
計算量
一定。