std::numeric_limits::is_signed
De cppreference.com
< cpp | types | numeric limits
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
static const bool is_signed |
(hasta C++11) | |
static constexpr bool is_signed |
(desde C++11) | |
El valor de std::numeric_limits<T>::is_signed es true para todos los tipos aritméticos firmados
T
y para false los tipos sin signo. Esta constante es significativa para todas las especialidades .Original:
The value of std::numeric_limits<T>::is_signed is true for all signed arithmetic types
T
and false for the unsigned types. This constant is meaningful for all specializations.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Especializaciones estándar
T
|
valor de std::numeric_limits<T>::is_signed
Original: value of std::numeric_limits<T>::is_signed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
/* non-specialized */ | false |
bool | false |
char | definido por la implantación
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
signed char | true |
unsigned char | false |
wchar_t | definido por la implantación
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
char16_t | false |
char32_t | false |
short | true |
unsigned short | false |
int | true |
unsigned int | false |
long | true |
unsigned long | false |
long long | true |
unsigned long long | false |
float | true |
double | true |
long double | true |
[editar] Ver también
(C++11) |
Comprueba si un tipo se firmaron tipo entero Original: checks if a type is signed integer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (plantilla de clase) |
[estático] |
identifica los tipos enteros Original: identifies integer types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante miembro pública estática) |
[estático] |
identifica los tipos exactos Original: identifies exact types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante miembro pública estática) |
[estático] |
identifies types that represent a finite set of values (constante miembro pública estática) |