static char_type to_char_type( int_type c ); | (until C++11) | |
static constexpr char_type to_char_type( int_type c ) noexcept; | (since C++11) |
Converts c to char_type. If there is no equivalent char_type value (such as when c is a copy of the eof() value), the result is unspecified.
See CharTraits for the general requirements on character traits for X::to_char_type.
| c | - | value to convert |
A value equivalent to c.
Constant.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/string/char_traits/to_char_type