C++ 標準程式庫標頭檔

依類別分類的 C++ 標準程式庫和延伸模組標頭檔。

依類別排序的標頭

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

11 在 C++11 標準中新增。
14 在 C++14 標準中新增。
17 在 C++17 標準中新增。
20 在 C++20 標準草稿中新增。
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>
已排序的關聯容器 <map>, <set>
未排序的關聯容器 <unordered_map>, <unordered_set>
配接器容器 <queue>, <stack>
錯誤和例外狀況處理 <exception>, <stdexcept>, <system_error>
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>
字串和字元資料 <regex>, <string>, <string_view>

另請參閱

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