std::char_traits<char>:: to_char_type, std::char_traits<wchar_t>:: to_char_type, std::char_traits<char8_t>:: to_char_type, std::char_traits<char16_t>:: to_char_type, std::char_traits<char32_t>:: to_char_type
From cppreference.net
<
cpp
|
string
|
char traits
|
static
char_type to_char_type
(
int_type c
)
;
|
(constexpr desde C++11)
(noexcept desde C++11) |
|
Convierte
c
a
char_type
. Si no existe un valor equivalente de
char_type
(como cuando
c
es una copia del valor de
eof()
), el resultado no está especificado.
Consulte
CharTraits
para los requisitos generales sobre rasgos de caracteres para
X::to_char_type
.
Parámetros
| c | - | valor a convertir |
Valor de retorno
Un valor equivalente a c .
Complejidad
Constante.