std::numeric_limits::is_integer
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í. |
staticconstbool is_integer | (hasta C++11) | |
staticconstexprbool is_integer | (desde C++11) | |
El valor de std::numeric_limits<T>::is_integer es true para todos los tipos aritméticas de enteros
T
y false lo contrario. Esta constante es significativa para todas las especialidades .Original:
The value of std::numeric_limits<T>::is_integer is true for all integer arithmetic types
T
and false otherwise. 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_integer Original: value of std::numeric_limits<T>::is_integer 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 | true |
char | true |
signedchar | true |
unsignedchar | true |
wchar_t | true |
char16_t | true |
char32_t | true |
short | true |
unsignedshort | true |
int | true |
unsignedint | true |
long | true |
unsignedlong | true |
longlong | true |
unsignedlonglong | true |
float | false |
double | false |
longdouble | false |
[editar]Ver también
(C++11) | Comprueba si un tipo T es entero. (plantilla de clase) |
[estático] | identifica los tipos firmados Original: identifies signed 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) |