Fixed width integer types (desde C++11)
De cppreference.com
![]() |
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í. |
[editar] Tipos
Definido en el archivo de encabezado
<cstdint> | |
int8_t int16_t int32_t int64_t
|
firmado tipo entero con anchura of
exactamente 8, 16, 32 y 64 bits de respectively with no bits de relleno y utilizando el complemento a 2 para values negativo (proporcionado sólo si la aplicación directamente compatible con el tipo) 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_t int_fast16_t int_fast32_t int_fast64_t
|
más rápido firmado tipo entero con signo con anchura of
al menos 8, 16, 32 y 64 bits de respectivamente 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_t int_least16_t int_least32_t int_least64_t
|
más pequeña de tipo entero firmado con anchura of
al menos 8, 16, 32 y 64 bits de respectivamente 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
|
ancho máximo de tipo entero
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
|
tipo entero capaz de contener un puntero
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_t uint16_t uint32_t uint64_t
|
tipo entero sin signo con un ancho de bits de of
exactamente 8, 16, 32 y 64, respectivamente (siempre y sólo si la aplicación directamente compatible con el tipo) 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_t uint_fast16_t uint_fast32_t uint_fast64_t
|
más rápido sin signo de tipo entero sin signo con of
ancho de por lo menos 8, 16, 32 y 64 bits de respectivamente 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_t uint_least16_t uint_least32_t uint_least64_t
|
tipo más pequeño de entero sin signo con of
anchura al menos 8, 16, 32 y 64 bits de respectivamente 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
|
ancho máximo de tipo entero sin signo
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
|
tipo entero sin signo capaz de contener un puntero
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. |
[editar] Constantes Macro
Definido en el archivo de encabezado
<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_MININT16_MININT32_MININT64_MIN |
valor mínimo de un objeto de tipo 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. (constante de macro) |
INT_FAST8_MININT_FAST16_MININT_FAST32_MININT_FAST64_MIN |
valor mínimo de un objeto de tipo 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. (constante de macro) |
INT_LEAST8_MININT_LEAST16_MININT_LEAST32_MININT_LEAST64_MIN |
valor mínimo de un objeto de tipo 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. (constante de macro) |
INTPTR_MIN |
valor mínimo de un objeto de tipo 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. (constante de macro) |
INTMAX_MIN |
valor mínimo de un objeto de tipo 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. (constante de macro) |
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_MAXINT16_MAXINT32_MAXINT64_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
INT_FAST8_MAXINT_FAST16_MAXINT_FAST32_MAXINT_FAST64_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
INT_LEAST8_MAXINT_LEAST16_MAXINT_LEAST32_MAXINT_LEAST64_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
INTPTR_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
INTMAX_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
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_MAXUINT16_MAXUINT32_MAXUINT64_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
UINT_FAST8_MAXUINT_FAST16_MAXUINT_FAST32_MAXUINT_FAST64_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
UINT_LEAST8_MAXUINT_LEAST16_MAXUINT_LEAST32_MAXUINT_LEAST64_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
UINTPTR_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
UINTMAX_MAX |
valor máximo de un objeto de tipo 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. (constante de macro) |
[editar] Constantes Formato macro
Esta sección está incompleta Razón: will look better as a table |
Definido en el archivo de encabezado
<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. | |
PRId8PRId16PRId32PRId64PRIdLEAST8PRIdLEAST16PRIdLEAST32PRIdLEAST64PRIdFAST8PRIdFAST16PRIdFAST32PRIdFAST64PRIdMAXPRIdPTR |
especificador de formato de conversión para la salida de un valor con signo decimal entero de tipo 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 respectivamente, lo que equivale a %d para 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. (constante de macro) |
PRIi8PRIi16PRIi32PRIi64PRIiLEAST8PRIiLEAST16PRIiLEAST32PRIiLEAST64PRIiFAST8PRIiFAST16PRIiFAST32PRIiFAST64PRIiMAXPRIiPTR |
especificador de formato de conversión para la salida de un valor con signo decimal entero de tipo 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 respectivamente, lo que equivale a %i para 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. (constante de macro) |
PRIu8PRIu16PRIu32PRIu64PRIuLEAST8PRIuLEAST16PRIuLEAST32PRIuLEAST64PRIuFAST8PRIuFAST16PRIuFAST32PRIuFAST64PRIuMAXPRIuPTR |
especificador de formato de conversión para la salida de un entero de valor decimal entero de tipo 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 respectivamente, lo que equivale a %u para 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. (constante de macro) |
PRIo8PRIo16PRIo32PRIo64PRIoLEAST8PRIoLEAST16PRIoLEAST32PRIoLEAST64PRIoFAST8PRIoFAST16PRIoFAST32PRIoFAST64PRIoMAXPRIoPTR |
especificador de conversión de formato para dar salida a un entero octal valor entero de tipo 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 respectivamente, lo que equivale a %o para 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. (constante de macro) |
PRIx8PRIx16PRIx32PRIx64PRIxLEAST8PRIxLEAST16PRIxLEAST32PRIxLEAST64PRIxFAST8PRIxFAST16PRIxFAST32PRIxFAST64PRIxMAXPRIxPTR |
especificador de formato de conversión para la salida de un entero de valor hexadecimal entero de tipo 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 respectivamente, lo que equivale a %x para 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. (constante de macro) |
PRIX8PRIX16PRIX32PRIX64PRIXLEAST8PRIXLEAST16PRIXLEAST32PRIXLEAST64PRIXFAST8PRIXFAST16PRIXFAST32PRIXFAST64PRIXMAXPRIXPTR |
especificador de formato de conversión para la salida de un entero hexadecimal en mayúsculas valor entero de tipo 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 respectivamente, lo que equivale a %X para 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. (constante de macro) |
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. | |
SCNd8SCNd16SCNd32SCNd64SCNdLEAST8SCNdLEAST16SCNdLEAST32SCNdLEAST64SCNdFAST8SCNdFAST16SCNdFAST32SCNdFAST64SCNdMAXSCNdPTR |
especificador de formato de conversión para introducir un valor con signo decimal entero de tipo 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 respectivamente, lo que equivale a %d para 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. (constante de macro) |
SCNi8SCNi16SCNi32SCNi64SCNiLEAST8SCNiLEAST16SCNiLEAST32SCNiLEAST64SCNiFAST8SCNiFAST16SCNiFAST32SCNiFAST64SCNiMAXSCNiPTR |
especificador de formato de conversión para introducir un decimal con signo / octal / hexadecimal valor entero de tipo 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 respectivamente, lo que equivale a %i para 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. (constante de macro) |
SCNu8SCNu16SCNu32SCNu64SCNuLEAST8SCNuLEAST16SCNuLEAST32SCNuLEAST64SCNuFAST8SCNuFAST16SCNuFAST32SCNuFAST64SCNuMAXSCNuPTR |
especificador de conversión de formato para ingresar un valor decimal sin signo entero de tipo 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 respectivamente, lo que equivale a %u para 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. (constante de macro) |
SCNo8SCNo16SCNo32SCNo64SCNoLEAST8SCNoLEAST16SCNoLEAST32SCNoLEAST64SCNoFAST8SCNoFAST16SCNoFAST32SCNoFAST64SCNoMAXSCNoPTR |
especificador de formato de conversión para introducir un entero octal valor entero de tipo 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 respectivamente, lo que equivale a %o para 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. (constante de macro) |
SCNx8SCNx16SCNx32SCNx64SCNxLEAST8SCNxLEAST16SCNxLEAST32SCNxLEAST64SCNxFAST8SCNxFAST16SCNxFAST32SCNxFAST64SCNxMAXSCNxPTR |
especificador de formato de conversión para introducir un valor hexadecimal sin signo entero de tipo 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 respectivamente, lo que equivale a %x para 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. (constante de macro) |
SCNX8SCNX16SCNX32SCNX64SCNXLEAST8SCNXLEAST16SCNXLEAST32SCNXLEAST64SCNXFAST8SCNXFAST16SCNXFAST32SCNXFAST64SCNXMAXSCNXPTR |
especificador de formato de conversión para introducir un valor hexadecimal sin signo de mayúscula de tipo entero 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 respectivamente, lo que equivale a %X para 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. (constante de macro) |