按类别划分的 C++ 标准库和扩展的头文件。
按类别划分的标头
11 在 C++11 标准中添加。
14 在 C++14 标准中添加。
17 在 C++17 标准中添加。
20 在草案 C++20 标准中添加。
a 在 C++17 标准中已弃用。
b 在草案 C++20 标准中已删除。
c 在 C++98 标准中已弃用。
类别 | 标头 |
---|---|
算法 | <algorithm> |
C 库包装器 |
<cassert> , <cctype> , <cerrno> , <cfenv> , <cfloat> , <cinttypes> , <ciso646> , <climits> , <clocale> , <cmath> , <csetjmp> , <csignal> , <cstdarg> , <cstdbool> , <cstddef> , <cstdint> , <cstdio> , <cstdlib> , <cstring> , <ctgmath> , <ctime> , <cwchar> , <cwctype> |
容器 | |
序列容器 |
<array> , <deque> , <forward_list> , <list> , <vector> |
有序的关联容器 | %> |
无序的关联容器 | %> |
适配器容器 | %> |
错误和异常处理 | .- . |
I/O 和格式设置 |
<filesystem> , <fstream> , <iomanip> , <ios> , <iosfwd> , <iostream> , <istream> , <ostream> , <sstream> , <streambuf> , <strstream> |
迭代器 | <iterator> |
本地化 |
<codecvt> , <cvt/wbuffer> , <cvt/wstring> , <locale> |
数学和数字 |
<complex> , <limits> , <numeric> , <random> , <ratio> , <valarray> |
内存管理 |
<allocators> , <memory> , <new> , <scoped_allocator> |
多线程处理 |
<atomic> , <condition_variable> , <future> , <mutex> , <shared_mutex> , <thread> |
其他实用工具 |
<bitset> , <chrono> , <functional> , <initializer_list> , <tuple> , <type_traits> , <typeinfo> , <typeindex> , <utility> |
字符串和字符数据 | .- . |