Fixed width integer types (начиная с C++11)
Материал из cppreference.com
|
|
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. |
[править] Типы
| Определено в файле <cstdint>
| |
int8_tint16_tint32_tint64_t
|
целое число типа с шириной of
ровно 8, 16, 32 и 64 бит respectively with без заполнения битами и использования дополнение 2 для отрицательных values (при условии только, если реализация непосредственно поддерживает тип) Original: signed integer type with width of exactly 8, 16, 32 and 64 bits respectively with no padding bits and using 2's complement for negative values (provided only if the implementation directly supports the type) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
int_fast8_tint_fast16_tint_fast32_tint_fast64_t
|
быстрый подписан целое число типа с шириной of
по крайней мере, 8, 16, 32 и 64 бит соответственно Original: fastest signed signed integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
int_least8_tint_least16_tint_least32_tint_least64_t
|
наименьшее целое число типа с шириной of
по крайней мере, 8, 16, 32 и 64 бит соответственно Original: smallest signed integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
intmax_t
|
максимальная ширина целого типа
Original: maximum width integer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
intptr_t
|
целого типа способны удерживать указатель
Original: integer type capable of holding a pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uint8_tuint16_tuint32_tuint64_t
|
беззнаковое целое число типа с шириной of
ровно 8, 16, 32 и 64 бит соответственно (при условии только, если реализация непосредственно поддерживает тип) Original: unsigned integer type with width of exactly 8, 16, 32 and 64 bits respectively (provided only if the implementation directly supports the type) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uint_fast8_tuint_fast16_tuint_fast32_tuint_fast64_t
|
быстро без знака целого числа без знака типа с шириной of
по крайней мере, 8, 16, 32 и 64 бит соответственно Original: fastest unsigned unsigned integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uint_least8_tuint_least16_tuint_least32_tuint_least64_t
|
наименьшее целое число без знака типа с шириной of
по крайней мере, 8, 16, 32 и 64 бит соответственно Original: smallest unsigned integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uintmax_t
|
Максимальная ширина тип без знака целого числа
Original: maximum width unsigned integer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uintptr_t
|
беззнаковое целое число типа способны удерживать указатель
Original: unsigned integer type capable of holding a pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Макро констант
| Определено в файле <cstdint>
| |
Original: Signed integers : minimum value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| INT8_MIN INT16_MIN INT32_MIN INT64_MIN |
Минимальное значение объекта типа int8_t, int16_t, int32_t, int64_t Original: minimum value of an object of type int8_t, int16_t, int32_t, int64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INT_FAST8_MIN INT_FAST16_MIN INT_FAST32_MIN INT_FAST64_MIN |
Минимальное значение объекта типа int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t Original: minimum value of an object of type int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INT_LEAST8_MIN INT_LEAST16_MIN INT_LEAST32_MIN INT_LEAST64_MIN |
Минимальное значение объекта типа int_least8_t, int_least16_t, int_least32_t, int_least64_t Original: minimum value of an object of type int_least8_t, int_least16_t, int_least32_t, int_least64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INTPTR_MIN |
Минимальное значение объекта типа intptr_t Original: minimum value of an object of type intptr_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INTMAX_MIN |
Минимальное значение объекта типа intmax_t Original: minimum value of an object of type intmax_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
Original: Signed integers : maximum value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| INT8_MAX INT16_MAX INT32_MAX INT64_MAX |
Максимальное значение объекта типа int8_t, int16_t, int32_t, int64_t Original: maximum value of an object of type int8_t, int16_t, int32_t, int64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INT_FAST8_MAX INT_FAST16_MAX INT_FAST32_MAX INT_FAST64_MAX |
Максимальное значение объекта типа int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t Original: maximum value of an object of type int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INT_LEAST8_MAX INT_LEAST16_MAX INT_LEAST32_MAX INT_LEAST64_MAX |
Максимальное значение объекта типа int_least8_t, int_least16_t, int_least32_t, int_least64_t Original: maximum value of an object of type int_least8_t, int_least16_t, int_least32_t, int_least64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INTPTR_MAX |
Максимальное значение объекта типа intptr_t Original: maximum value of an object of type intptr_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| INTMAX_MAX |
Максимальное значение объекта типа intmax_t Original: maximum value of an object of type intmax_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
Original: Unsigned integers : maximum value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| UINT8_MAX UINT16_MAX UINT32_MAX UINT64_MAX |
Максимальное значение объекта типа uint8_t, uint16_t, uint32_t, uint64_t Original: maximum value of an object of type uint8_t, uint16_t, uint32_t, uint64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| UINT_FAST8_MAX UINT_FAST16_MAX UINT_FAST32_MAX UINT_FAST64_MAX |
Максимальное значение объекта типа uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t Original: maximum value of an object of type uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| UINT_LEAST8_MAX UINT_LEAST16_MAX UINT_LEAST32_MAX UINT_LEAST64_MAX |
Максимальное значение объекта типа uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t Original: maximum value of an object of type uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| UINTPTR_MAX |
Максимальное значение объекта типа uintptr_t Original: maximum value of an object of type uintptr_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| UINTMAX_MAX |
Максимальное значение объекта типа uintmax_t Original: maximum value of an object of type uintmax_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
[править] Константы Формат макросов
| Этот раздел не завершён Причина: will look better as a table |
| Определено в файле <cinttypes>
| |
Original: Format constants for the std::fprintf family of functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| PRId8 PRId16 PRId32 PRId64 PRIdLEAST8 PRIdLEAST16 PRIdLEAST32 PRIdLEAST64 PRIdFAST8 PRIdFAST16 PRIdFAST32 PRIdFAST64 PRIdMAX PRIdPTR |
Формат спецификатор преобразования для вывода подписан десятичное целое значение типа std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t соответственно, что эквивалентно %d для int Original: format conversion specifier to output a signed decimal integer value of type std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t respectively, equivalent to %d for int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| PRIi8 PRIi16 PRIi32 PRIi64 PRIiLEAST8 PRIiLEAST16 PRIiLEAST32 PRIiLEAST64 PRIiFAST8 PRIiFAST16 PRIiFAST32 PRIiFAST64 PRIiMAX PRIiPTR |
Формат спецификатор преобразования для вывода подписан десятичное целое значение типа std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t соответственно, что эквивалентно %i для int Original: format conversion specifier to output a signed decimal integer value of type std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t respectively, equivalent to %i for int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| PRIu8 PRIu16 PRIu32 PRIu64 PRIuLEAST8 PRIuLEAST16 PRIuLEAST32 PRIuLEAST64 PRIuFAST8 PRIuFAST16 PRIuFAST32 PRIuFAST64 PRIuMAX PRIuPTR |
Формат спецификатор преобразования выводить беззнаковое десятичное целое число типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %u для unsigned int Original: format conversion specifier to output an unsigned decimal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %u for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| PRIo8 PRIo16 PRIo32 PRIo64 PRIoLEAST8 PRIoLEAST16 PRIoLEAST32 PRIoLEAST64 PRIoFAST8 PRIoFAST16 PRIoFAST32 PRIoFAST64 PRIoMAX PRIoPTR |
Формат спецификатор преобразования выводить беззнаковое восьмеричное целое число типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %o для unsigned int Original: format conversion specifier to output an unsigned octal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %o for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| PRIx8 PRIx16 PRIx32 PRIx64 PRIxLEAST8 PRIxLEAST16 PRIxLEAST32 PRIxLEAST64 PRIxFAST8 PRIxFAST16 PRIxFAST32 PRIxFAST64 PRIxMAX PRIxPTR |
Формат спецификатор преобразования выводить беззнаковое шестнадцатеричное целое число типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %x для unsigned int Original: format conversion specifier to output an unsigned hexadecimal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %x for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| PRIX8 PRIX16 PRIX32 PRIX64 PRIXLEAST8 PRIXLEAST16 PRIXLEAST32 PRIXLEAST64 PRIXFAST8 PRIXFAST16 PRIXFAST32 PRIXFAST64 PRIXMAX PRIXPTR |
Формат спецификатор преобразования для вывода беззнаковых заглавными шестнадцатеричное целое значение типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %X для unsigned int Original: format conversion specifier to output an unsigned uppercase hexadecimal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %X for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
Original: Format constants for the std::fscanf family of functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| SCNd8 SCNd16 SCNd32 SCNd64 SCNdLEAST8 SCNdLEAST16 SCNdLEAST32 SCNdLEAST64 SCNdFAST8 SCNdFAST16 SCNdFAST32 SCNdFAST64 SCNdMAX SCNdPTR |
Формат спецификатор преобразования для ввода подписан десятичное целое значение типа std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t соответственно, что эквивалентно %d для int Original: format conversion specifier to input a signed decimal integer value of type std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t respectively, equivalent to %d for int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| SCNi8 SCNi16 SCNi32 SCNi64 SCNiLEAST8 SCNiLEAST16 SCNiLEAST32 SCNiLEAST64 SCNiFAST8 SCNiFAST16 SCNiFAST32 SCNiFAST64 SCNiMAX SCNiPTR |
Формат спецификатор преобразования для ввода десятичных / восьмеричной / шестнадцатеричное целое значение типа std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t соответственно, что эквивалентно %i для int Original: format conversion specifier to input a signed decimal/octal/hexadecimal integer value of type std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::int_least8_t, std::int_least16_t, std::int_least32_t, std::int_least64_t, std::int_fast8_t, std::int_fast16_t, std::int_fast32_t, std::int_fast64_t, std:intmax_t, std::intptr_t respectively, equivalent to %i for int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| SCNu8 SCNu16 SCNu32 SCNu64 SCNuLEAST8 SCNuLEAST16 SCNuLEAST32 SCNuLEAST64 SCNuFAST8 SCNuFAST16 SCNuFAST32 SCNuFAST64 SCNuMAX SCNuPTR |
Формат спецификатор преобразования для ввода беззнаковое десятичное целое число типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %u для unsigned int Original: format conversion specifier to input an unsigned decimal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %u for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| SCNo8 SCNo16 SCNo32 SCNo64 SCNoLEAST8 SCNoLEAST16 SCNoLEAST32 SCNoLEAST64 SCNoFAST8 SCNoFAST16 SCNoFAST32 SCNoFAST64 SCNoMAX SCNoPTR |
Формат спецификатор преобразования для ввода беззнаковое восьмеричное целое число типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %o для unsigned int Original: format conversion specifier to input an unsigned octal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %o for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| SCNx8 SCNx16 SCNx32 SCNx64 SCNxLEAST8 SCNxLEAST16 SCNxLEAST32 SCNxLEAST64 SCNxFAST8 SCNxFAST16 SCNxFAST32 SCNxFAST64 SCNxMAX SCNxPTR |
Формат спецификатор преобразования для ввода беззнаковое шестнадцатеричное целое число типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %x для unsigned int Original: format conversion specifier to input an unsigned hexadecimal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %x for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| SCNX8 SCNX16 SCNX32 SCNX64 SCNXLEAST8 SCNXLEAST16 SCNXLEAST32 SCNXLEAST64 SCNXFAST8 SCNXFAST16 SCNXFAST32 SCNXFAST64 SCNXMAX SCNXPTR |
Формат спецификатор преобразования для ввода заглавных беззнаковое шестнадцатеричное целое значение типа std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t соответственно, что эквивалентно %X для unsigned int Original: format conversion specifier to input an unsigned uppercase hexadecimal integer value of type std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, std::uint_least8_t, std::uint_least16_t, std::uint_least32_t, std::uint_least64_t, std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t, std::uint_fast64_t, std:uintmax_t, std::uintptr_t respectively, equivalent to %X for unsigned int The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |