cppreference.com
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
类型支持(基本类型、RTTI)
来自cppreference.com
<
cpp
C++
编译器支持
自立实现与有宿主实现
语言
标准库
标准库标头
具名要求
功能特性测试宏
(C++20)
语言支持库
概念库
(C++20)
诊断库
内存管理库
元编程库
(C++11)
通用工具库
容器库
迭代器库
范围库
(C++20)
算法库
字符串库
文本处理库
数值库
日期和时间库
输入/输出库
文件系统库
(C++17)
并发支持库
(C++11)
执行控制库
(C++26)
技术规范
符号索引
外部库
[编辑]
工具库
语言支持
库功能特性测试宏
(C++20)
类型支持
(基本类型、RTTI)
程序工具
可变参数函数
is_constant_evaluated
(C++20)
is_within_lifetime
(C++26)
initializer_list
(C++11)
source_location
(C++20)
协程支持
(C++20)
契约支持
(C++26)
三路比较
three_way_comparable
three_way_comparable_with
(C++20)
(C++20)
strong_ordering
(C++20)
weak_ordering
(C++20)
partial_ordering
(C++20)
common_comparison_category
(C++20)
compare_three_way_result
(C++20)
compare_three_way
(C++20)
strong_order
(C++20)
weak_order
(C++20)
partial_order
(C++20)
compare_strong_order_fallback
(C++20)
compare_weak_order_fallback
(C++20)
compare_partial_order_fallback
(C++20)
is_eq
is_lt
is_lteq
(C++20)
(C++20)
(C++20)
is_neq
is_gt
is_gteq
(C++20)
(C++20)
(C++20)
通用工具
函数对象
位操纵
(C++20)
C 风格的位操纵
(C++26)
bitset
hash
(C++11)
关系运算符
(C++20 弃用)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
整数比较函数
cmp_equal
cmp_less
cmp_less_than
(C++20)
(C++20)
(C++20)
cmp_not_equal
cmp_greater
cmp_greater_than
(C++20)
(C++20)
(C++20)
in_range
(C++20)
交换
与
类型运算
swap
ranges::swap
(C++20)
exchange
(C++14)
declval
(C++11)
to_underlying
(C++23)
forward
(C++11)
forward_like
(C++23)
move
(C++11)
move_if_noexcept
(C++11)
as_const
(C++17)
常用词汇类型
pair
tuple
(C++11)
optional
(C++17)
any
(C++17)
variant
(C++17)
tuple_size
(C++11)
tuple_element
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
expected
(C++23)
[编辑]
类型支持
基本类型
定宽整数类型
(C++11)
定宽浮点类型
(C++23)
ptrdiff_t
size_t
max_align_t
(C++11)
byte
(C++17)
nullptr_t
(C++11)
offsetof
NULL
数值极限
numeric_limits
C 数值极限接口
运行时类型信息
type_info
type_index
(C++11)
bad_typeid
bad_cast
[编辑]
参阅
类型系统综述
及
语言定义的基础类型
。
目录
1
额外基本类型及宏
2
定宽整数类型
(C++11 起)
3
定宽浮点数类型
(C++23 起)
4
数值极限
4.1
C 数值极限接口
5
运行时类型识别
6
缺陷报告
7
参阅
[
编辑
]
额外基本类型及宏
在标头
<cstddef>
定义
size_t
sizeof
运算符返回的无符号整数类型
(typedef)
[编辑]
ptrdiff_t
两个指针相减返回的有符号整数类型
(typedef)
[编辑]
nullptr_t
(C++11)
空指针字面量
nullptr
的类型
(typedef)
[编辑]
NULL
实现定义的空指针常量
(宏常量)
[编辑]
max_align_t
(C++11)
具有不小于任何基础类型的内存对齐需求的平凡类型
(typedef)
[编辑]