std::numeric_limits::is_signed
Da cppreference.com
< cpp | types | numeric limits
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
staticconstbool is_signed | (até C++11) | |
staticconstexprbool is_signed | (desde C++11) | |
O valor da std::numeric_limits<T>::is_signed é true para todos os tipos aritméticos assinados
T
e false para os tipos não assinados. Esta constante é significativo para todas as especializações.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]Especializações padrão
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 | definida pela implementação 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. |
signedchar | true |
unsignedchar | false |
wchar_t | definida pela implementação 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 |
unsignedshort | false |
int | true |
unsignedint | false |
long | true |
unsignedlong | false |
longlong | true |
unsignedlonglong | false |
float | true |
double | true |
longdouble | true |
[editar]Veja também
(C++11) | verifica se um tipo é assinado tipo inteiro 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. (modelo de classe) |
[estática] | identifica os tipos inteiros 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. (membro estático público constante) |
[estática] | identifica os tipos de exatas 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. (membro estático público constante) |
[estática] | identifies types that represent a finite set of values (membro estático público constante) |