C ++の型unsigned
は何を指しますか?まったく同じunsigned int
ですか?
【品質基準を満たす】
はい、まったく同じです。タイプ指定子と対応する指定されたタイプのリストについては、7.1.6.2単純タイプ指定子[dcl.type.simple]の表10を参照してください。unsigned
タイプ「unsignedint」を指定するのと同じようにunsigned int
、タイプ「unsignedint」を指定します。
Specifier(s) Type
_type-name_ the type named
_simple-template-id_ the type as defined in 14.2
char “char”
unsigned char “unsigned char”
signed char “signed char”
char16_t “char16_t”
char32_t “char32_t”
bool “bool”
unsigned “unsigned int” <<<<<<<<<<<<<
unsigned int “unsigned int”
signed “int”
signed int “int”
int “int”
unsigned short int “unsigned short int”
unsigned short “unsigned short int”
unsigned long int “unsigned long int”
unsigned long “unsigned long int”
unsigned long long int “unsigned long long int”
unsigned long long “unsigned long long int”
signed long int “long int”
signed long “long int”
signed long long int “long long int”
signed long long “long long int”
long long int “long long int”
long long “long long int”
long int “long int”
long “long int”
signed short int “short int”
signed short “short int”
short int “short int”
short “short int”
wchar_t “wchar_t”
float “float”
double “double”
long double “long double”
void “void”
auto placeholder for a type to be deduced
decltype(_expression_) the type as defined below
はい、同じです。