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_signed является true для всех подписанных арифметических типов
T и false для беззнаковых типов. Эта константа имеет смысл для всех специальностей.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. (шаблон класса) |
| [static] |
определяет целых типов 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. (public static константа-член) |
| [static] |
определяет точные типы 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. (public static константа-член) |
| [static] |
identifies types that represent a finite set of values (public static константа-член) |