C++標準連結庫頭檔

依類別分類C++標準連結庫和擴展名的頭檔。

依類別排序的標頭

類別 標題
演算法 <algorithm>、<cstdlib>、<numeric>
不可部分完成的作業 <atomic> 11
C 連結庫包裝函式 <cassert>, <ccomplex>11 a b, <cctype>, <cerrno>, 11<cfenv>, <cfloat>, 11<cinttypes>, <ciso646>b, <climits>, <cstdalign><csetjmp><csignal><cmath><clocale>a b, , 11 a b,<cstdbool><cstdarg> , 11 a b, <cstddef>,<cstring><cstdlib><cstdio><cstdint><ctgmath> 11 a b, <ctime>,<cuchar> 11, , <cwchar><cwctype>
概念 <concepts> 20
Containers
時序容器 <array> 11,<deque>,11<forward_list>,<list>,<vector>
已排序的關聯容器 <map>、<set>
未排序的關聯容器 <unordered_map> 11,11<unordered_set>
容器配接器 <queue>、<stack>
容器檢視 <mdspan> 23,20<span>
診斷 <stacktrace> 23
錯誤與異常處理 <cassert>, <exception>, <stdexcept>, <system_error>11
一般公用程式 <any> 17、<bit>20、 <bitset>, <cstdlib>17<execution>, <expected>23, <functional>, <memory>, , 17<memory_resource>,<optional> 17, <ratio> 11,<scoped_allocator> 11,<tuple> 11,<type_traits> 11, 11,<typeindex><utility>17 <variant>
輸入輸出與格式化 <cinttypes> 11, <cstdio>, 17<filesystem>, <format>20, <fstream><iomanip>, <ios>, <iosfwd>, <iostream>, <istream><ostream>23<print>,<sstream><spanstream> , <streambuf>, , c<strstream>, <syncstream>20
迭代器 <iterator>
語言支援 <cfloat>, <climits>, 11<codecvt> a, <compare>20, <coroutine>20, <csetjmp>, <csignal>, <cstdarg>, <cstddef>, , 11<cstdint>, <cstdlib>, <exception>,<limits><initializer_list><source_location><new>20,<stdfloat>23,<typeinfo>, <version> 20
當地語系化 <clocale>, 11<codecvt> a, <cvt/wbuffer>, <cvt/wstring>,<locale>
數學和數值 <bit> 20、<cfenv>11、<cmath>, <complex>, <cstdlib>, <numbers><limits>20, <numeric>11<random>, <ratio>11,<valarray>
記憶體管理 <allocators>, <memory>, 17<memory_resource>, <new>, <scoped_allocator>11
多執行緒 <atomic> 11、 <barrier>20、 <condition_variable>11、 <future>11、 <latch>20、 <mutex>11、 <semaphore>20、 <shared_mutex>14、 <stop_token>20、 <thread>11
範圍 <generator> 23,20<ranges>
規則運算式 <regex> 11
字串和字元數據 <charconv> 17,<cctype>,,<cstdlib>,<cstring>11<cuchar>,<cwchar>,<cwctype>,<regex>11,<string>,17<string_view>
時間 <chrono> 11, <ctime>

11 則加入 C++11 標準。
14 則在 C++14 標準中加入。
17 則加入 C++17 標準。
C++20 標準新增了 20 個。
C++23 標準中新增了 23 條。
a 在 C++17 標準中已被棄用。
b 在 C++20 標準中被移除。
c 在 C++98 標準中被棄用。

類別 標題
演算法 <algorithm>
C 連結庫包裝函式 <cassert>, <cctype>, , <cstring><csetjmp><csignal><cmath><clocale><cstdarg><cstdio><cstdint><cstdlib><cstddef><ctgmath><ctime><cfenv><cinttypes><cwchar><cfloat><ciso646><climits><cstdbool><cerrno><cwctype>
Containers
時序容器 <array>、、 <deque>、 <forward_list>、 <list>、 <vector>
已排序的關聯容器 <map>、<set>
未排序的關聯容器 <unordered_map>、<unordered_set>
容器配接器 <queue>、<stack>
錯誤與異常處理 <exception>、<stdexcept>、<system_error>
輸入輸出與格式化 <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>
字串和字元數據 <regex>、<string>、<string_view>

另請參閱

使用 C++ 函式庫標頭
C++ 標準程式庫