template <class T> struct is_fundamental;
| 基本算术类型 | |
|---|---|
| 整数类型 | bool |
| char | |
| char16_t | |
| char32_t | |
| wchar_t | |
| signed char | |
| short int | |
| int | |
| long int | |
| long long int | |
| unsigned char | |
| unsigned short int | |
| unsigned int | |
| unsigned long int | |
| unsigned long long int | |
| 浮点类型 | float |
| double | |
| long double | |
| void | void |
| null pointer | std::nullptr_t |
|
|
| 成员类型 | 定义 |
|---|---|
| value_type | bool |
| 类型 | true_type 或 false_type |
| 成员常量 | 定义 |
|---|---|
| 值 | 是trueorfalse |
|
|
is_fundamental: unsigned: true float: true float*: false decltype(nullptr): true |