std::numeric_limits::is_signed
来自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. |
| static const bool is_signed |
(至 C++11) | |
| static constexpr bool is_signed |
(C++11 起) | |
std::numeric_limits<T>::is_signedtrue对所有已签名的算术类型
Tfalse为无符号类型。这个常量是有意义的所有专业.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.
[编辑] 标准的专业
T
|
值的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 | 实现定义的
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 | 实现定义的
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 |
[编辑] 另请参阅
| (C++11) |
如果一个类型的检查是有符号整数类型 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. (类模板) |
| [静态的] </ SPAN></div></div>
|
确定整数类型 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. (公共静态成员常量) |
| [静态的] </ SPAN></div></div>
|
确定确切类型 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. (公共静态成员常量) |
| [静态的] </ SPAN></div></div>
|
identifies types that represent a finite set of values (公共静态成员常量) |